Skip to content

updated workflow

updated workflow #308

Workflow file for this run

name: Test and Lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test_lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Install uv and Python
uses: astral-sh/setup-uv@v5
with:
version: "0.6.2"
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Linting
run: uv run poe ci_check
- name: Testing
if: ${{ matrix.python-version == '3.10' }}
run: uv run poe test
- name: "Upload coverage to Codecov"
if: ${{ matrix.python-version == '3.10' }}
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}