Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 57 additions & 56 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,62 @@
name: Test

on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
pull_request:
types:
- opened
- synchronize

jobs:
static-analysis:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: install-poetry
run: pipx install poetry
- name: setup-python
uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
cache: poetry
- name: install-dependencies
run: poetry install --no-interaction --only dev
- name: ruff-check
run: poetry run ruff check .
- name: ruff-format
run: poetry run ruff format --check .
- name: mypy
run: poetry run mypy .
tests:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version:
- "3.12"
- "3.11"
- "3.10"
fail-fast: false
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: install-poetry
run: pipx install poetry
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: install-dependencies
run: poetry install --no-interaction
- name: pytest
run: |
poetry run coverage run -m pytest . -vv
poetry run coverage report -m --skip-covered
static-analysis:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: install-poetry
run: pipx install poetry
- name: setup-python
uses: actions/setup-python@v4
with:
python-version-file: pyproject.toml
cache: poetry
- name: install-dependencies
run: poetry install --no-interaction --only dev
- name: ruff-check
run: poetry run ruff check .
- name: ruff-format
run: poetry run ruff format --check .
- name: mypy
run: poetry run mypy .
tests:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
python-version:
- "3.13"
- "3.12"
- "3.11"
- "3.10"
fail-fast: false
steps:
- name: checkout-repo
uses: actions/checkout@v3
- name: install-poetry
run: pipx install poetry
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: install-dependencies
run: poetry install --no-interaction
- name: pytest
run: |
poetry run coverage run -m pytest . -vv
poetry run coverage report -m --skip-covered