##// END OF EJS Templates
Tweak tests for PyPy and add CI runner...
Tweak tests for PyPy and add CI runner * `autoreload` tests are skipped on PyPy because `gc.get_referrers` is unusably slow here * `doctest_refs` does not seem to test anything and was removed * pexpect timeouts were adjusted because subprocess communication is 3-4 times slower on PyPy * few other tweaks

File last commit:

r27235:3b816f80
r27235:3b816f80
Show More
test.yml
70 lines | 2.1 KiB | text/x-yaml | YamlLexer
name: Run tests
on:
push:
pull_request:
# Run weekly on Monday at 1:23 UTC
schedule:
- cron: '23 1 * * 1'
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
deps: [test_extra]
# Test all on ubuntu, test ends on macos
include:
- os: macos-latest
python-version: "3.8"
deps: test_extra
- os: macos-latest
python-version: "3.10"
deps: test_extra
# Tests minimal dependencies set
- os: ubuntu-latest
python-version: "3.10"
deps: test
# Tests latest development Python version
- os: ubuntu-latest
python-version: "3.11-dev"
deps: test
# Installing optional dependencies stuff takes ages on PyPy
- os: ubuntu-latest
python-version: "pypy-3.8"
deps: test
- os: windows-latest
python-version: "pypy-3.8"
deps: test
- os: macos-latest
python-version: "pypy-3.8"
deps: test
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install latex
if: runner.os == 'Linux' && matrix.deps == 'test_extra'
run: sudo apt-get -yq -o Acquire::Retries=3 --no-install-suggests --no-install-recommends install texlive dvipng
- name: Install and update Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade -e .[${{ matrix.deps }}]
python -m pip install --upgrade check-manifest pytest-cov
- name: Check manifest
if: runner.os != 'Windows' # setup.py does not support sdist on Windows
run: check-manifest
- name: pytest
env:
COLUMNS: 120
run: |
pytest --color=yes -raXxs --cov --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2