Skip to content

ci: use GitHub-hosted ubuntu-latest runners #54

ci: use GitHub-hosted ubuntu-latest runners

ci: use GitHub-hosted ubuntu-latest runners #54

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check src/
- name: Run tests
run: pytest tests/ -v --tb=short
- name: Run tests with coverage
run: pytest tests/ --cov=src --cov-report=term-missing --cov-report=xml
- name: Upload coverage reports
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
fail_ci_if_error: false
continue-on-error: true