initial commit #1
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: Quality Assurance | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linters: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
command: [ | |
"ruff . --config ruff.toml", | |
"ruff format . --check --config ruff.toml", | |
"mypy --config mypy.toml" | |
] | |
steps: | |
- uses: actions/[email protected] | |
- uses: ./.github/actions/setup_python_and_poetry | |
- uses: ./.github/actions/linters | |
with: | |
command: ${{ matrix.command }} | |
tests: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ] | |
pydantic-version: [ "2.1", "2.8", "2.9" ] | |
steps: | |
- uses: actions/[email protected] | |
- uses: ./.github/actions/setup_python_and_poetry | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: ./.github/actions/tests | |
with: | |
pydantic-version: ${{ matrix.pydantic-version }} |