Skip to content

Merge pull request #19 from vertti/move-to-uv #88

Merge pull request #19 from vertti/move-to-uv

Merge pull request #19 from vertti/move-to-uv #88

Workflow file for this run

name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install uv
run: |
pip install uv
- name: Create virtual environment and install dependencies
run: |
uv sync
- name: Lint with Ruff and Mypy
run: |
uv run ruff check --output-format=github .
uv run ruff format --diff
uv run mypy .
- name: Test with pytest
run: |
uv run pytest --cov --cov-report=xml tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}