aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSebastian Rittau <srittau@rittau.biz>2021-11-11 21:56:51 +0100
committerGitHub <noreply@github.com>2021-11-11 12:56:51 -0800
commit8fd49b5fb255d91a7a065e15b049dc4e4c030238 (patch)
treec41a95570a92736ff51690977c1d996a8d923afa /.github
parent6992984178107c66d85cd81945be28b054db8d7c (diff)
downloadtyping-8fd49b5fb255d91a7a065e15b049dc4e4c030238.tar.gz
Use unittest for testing instead of pytest (#935)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml19
1 files changed, 5 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 70c69cf..758b316 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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