Merge pull request #19 from 15r10nk/pre-commit-ci-update-config #118
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: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
mypy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
architecture: x64 | |
allow-prereleases: true | |
- run: pip install nox==2023.4.22 nox-poetry poetry | |
- run: nox --session mypy-${{matrix.python-version}} | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python-version}} | |
architecture: x64 | |
allow-prereleases: true | |
- run: pip install nox==2023.4.22 nox-poetry poetry | |
- run: nox --sessions test-${{matrix.python-version}} |