Skip to content

Fix uv cache error

Fix uv cache error #36

Workflow file for this run

name: "pytest"
on:
push:
branches:
- '**'
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Set up Python 3.12
run: uv python install 3.12
- name: Install dependencies
run: |
uv sync --all-extras
- name: Lint with ruff
run: |
uv run ruff check .
- name: Check formatting with black
run: |
uv run black --check .
- name: Test with pytest
run: |
uv run pytest
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true