[pre-commit.ci] pre-commit autoupdate #186
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: CI | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
- 'pre-commit-ci-update-config' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
name: Test • Python ${{ matrix.python-version }} • ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install package | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Install test requirements | |
run: | | |
pip install -r tests/requirements.txt | |
pip install pytest-github-actions-annotate-failures | |
- name: Test with pytest | |
run: | | |
pytest | |
mypy: | |
name: MyPy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install package | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
- name: Install test requirements | |
run: | | |
pip install -r tests/requirements.txt | |
- name: Run MyPy | |
run: | | |
mypy |