Skip to content

Merge pull request #65 from alexwlchan/dependabot/pip/ruff-0.6.3 #165

Merge pull request #65 from alexwlchan/dependabot/pip/ruff-0.6.3

Merge pull request #65 from alexwlchan/dependabot/pip/ruff-0.6.3 #165

Workflow file for this run

name: run_tests
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: "Check out the repo"
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
cache-dependency-path: dev_requirements.txt
- name: "Install dependencies"
run: python3 -m pip install -r dev_requirements.txt
- name: Run linting
run: |
ruff check .
ruff format --check .
- name: Check types
run: mypy *.py src tests
- name: Run tests
run: |
coverage run -m pytest tests
coverage report --show-missing --skip-covered