Skip to content

Commit

Permalink
Use unittest for testing instead of pytest (#935)
Browse files Browse the repository at this point in the history
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
  • Loading branch information
srittau and hauntsaninja committed Nov 11, 2021
1 parent 6992984 commit 8fd49b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/ci.yml
Expand Up @@ -26,21 +26,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Load pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/test-requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r test-requirements.txt
- name: Test typing_extensions
run: pytest typing_extensions/src_py3
run: |
# Be wary of running `pip install` here, since it becomes easy for us to
# accidentally pick up typing_extensions as installed by a dependency
cd typing_extensions/src_py3
python -m unittest test_typing_extensions.py
linting:
name: Lint
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
@@ -1,4 +1,3 @@
flake8
flake8-bugbear
flake8-pyi
pytest

0 comments on commit 8fd49b5

Please sign in to comment.