Merge pull request #14 from 15r10nk/pre-commit-ci-update-config #71
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 | |
- run: pip install nox==2022.11.21 | |
- run: pip install poetry==1.2.2 | |
- 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 | |
- run: pip install nox==2022.11.21 | |
- run: pip install poetry==1.2.2 | |
- run: nox --sessions test-${{matrix.python-version}} |