Use up to date versions in CI #18
Workflow file for this run
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: Linting & tests | |
on: [push, pull_request] | |
jobs: | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: psf/black@stable | |
pytest-base: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python 3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Regular package install from checkout | |
run: pip install . | |
- name: Dev package install from checkout | |
run: pip install .[dev] | |
- name: Run tests with pytest | |
run: pytest | |
pytest-other-platforms: | |
needs: | |
- black | |
- pytest-base | |
strategy: | |
# Not failing fast allows all matrix jobs to try & finish even if one fails early | |
fail-fast: false | |
matrix: | |
python-version: | |
- 3.9 | |
- 3.10 | |
- 3.11 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Regular package install from checkout | |
run: pip install . | |
- name: Dev package install from checkout | |
run: pip install .[dev] | |
- name: Run tests with pytest | |
run: pytest |