Skip to content

feat: modernize to uv + pyproject.toml + python-semantic-release #818

feat: modernize to uv + pyproject.toml + python-semantic-release

feat: modernize to uv + pyproject.toml + python-semantic-release #818

Workflow file for this run

name: Python CI
on:
workflow_call:
pull_request:
branches:
- '**'
jobs:
run_tests:
name: ${{ matrix.toxenv }}
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
python-version: ['3.12']
toxenv: [quality, django52, check_keywords]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --group ci
- name: Run Tests
run: uv run tox -e ${{ matrix.toxenv }}
- name: Run Coverage
if: matrix.python-version == '3.12' && matrix.toxenv == 'django52'
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
fail_ci_if_error: true