Skip to content

Merge pull request #20 from nirum/codex/fix-pyrefly-errors #14

Merge pull request #20 from nirum/codex/fix-pyrefly-errors

Merge pull request #20 from nirum/codex/fix-pyrefly-errors #14

Workflow file for this run

name: Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- name: Check out the code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Create virtual environment
run: uv venv
- name: Install project with dev dependencies
run: uv pip install -e .[dev]
- name: Run ruff
run: uv run ruff check .
- name: Run tests with pytest
run: uv run pytest --cov --cov-report=term-missing