Clean up test runtime #240
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python tests | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- '3.7' | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "${{matrix.python-version}}" | |
cache: "pip" | |
cache-dependency-path: | | |
**/*requirements*.txt | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip setuptools | |
pip install -Ur requirements-dev.txt | |
- name: Test with pytest | |
run: pytest -vv | |
env: | |
PYTHONDEVMODE: 1 | |
PYTHONPATH: . | |
- uses: codecov/codecov-action@v3 | |
with: | |
name: build-${{ matrix.python-version }} | |
fail_ci_if_error: true |