diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-24 13:10:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 13:10:52 +0100 |
commit | 5e9d20dc32768e873ab84bc4ed0b489fdda40672 (patch) | |
tree | 26e1018b2ff6f299b23d93fa3160e0bd704966cd /.github | |
parent | e8fa46928d91893723a9a038fde2d274d535fd1f (diff) | |
download | pylint-git-5e9d20dc32768e873ab84bc4ed0b489fdda40672.tar.gz |
Primer tests "à la mypy" (#5173)
* Add changelog and warning about unstable API in testutil
* Add primer tests, (running pylint on external libs during tests)
In order to anticipate crash/fatal messages, false positives are harder
to anticipate. Follow-up will be #5359 and later on #5364
Add '__tracebackhide__ = True' so the traceback is manageable
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 41e9642bc..700fd8f31 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -509,3 +509,37 @@ jobs: . venv/bin/activate pip install -e . pytest -m primer_stdlib -n auto + + pytest-primer-external: + name: Run primer tests on external libs Python ${{ matrix.python-version }} (Linux) + runs-on: ubuntu-latest + needs: prepare-tests-linux + strategy: + matrix: + python-version: [3.8, 3.9, "3.10"] + steps: + - name: Check out code from GitHub + uses: actions/checkout@v2.3.5 + - name: Set up Python ${{ matrix.python-version }} + id: python + uses: actions/setup-python@v2.2.2 + with: + python-version: ${{ matrix.python-version }} + - name: Restore Python virtual environment + id: cache-venv + uses: actions/cache@v2.1.6 + with: + path: venv + key: + ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ + needs.prepare-tests-linux.outputs.python-key }} + - name: Fail job if Python cache restore failed + if: steps.cache-venv.outputs.cache-hit != 'true' + run: | + echo "Failed to restore Python venv from cache" + exit 1 + - name: Run pytest + run: | + . venv/bin/activate + pip install -e . + pytest -m primer_external -n auto |