Skip to content

Add test suite

Add test suite #9

Workflow file for this run

---
name: Code Quality
on:
push:
paths:
- '**.py'
branches:
- main
pull_request:
paths:
- '**.py'
jobs:
lint:
runs-on: ubuntu-latest
env:
RUFF_OUTPUT_FORMAT: github
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
check-latest: true
- name: Checkout
uses: actions/checkout@v4
- name: Install package and dependencies
run: pip install -e .'[all]'
- name: Install linters
run: pip install mypy ruff
- name: Register matchers
run: for matcher in .github/workflows/matchers/*.json; do echo ::add-matcher::"${matcher}"; done
- name: Check types
run: mypy --install-types --non-interactive --show-column-numbers .
- name: Check code style
run: ruff check .
- name: Check code formatting
run: ruff format --check .
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
python-version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy3.9'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ maxrix.python-version }}

Check failure on line 54 in .github/workflows/code_quality.yml

View workflow run for this annotation

GitHub Actions / Code Quality

Invalid workflow file

The workflow is not valid. .github/workflows/code_quality.yml (Line: 54, Col: 15): Unrecognized named-value: 'maxrix'. Located at position 1 within expression: maxrix.python-version .github/workflows/code_quality.yml (Line: 57, Col: 27): Unrecognized named-value: 'maxrix'. Located at position 1 within expression: maxrix.python-version
uses: actions/setup-python@v5
with:
python-version: ${{ maxrix.python-version }}
- name: Install tox
run: pip install tox-gh
- name: Run tests
run: tox -q run