Skip to content

Try out testing with UV #172

Try out testing with UV

Try out testing with UV #172

Workflow file for this run

# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Linters and Unit tests
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ main ]
jobs:
call-inclusive-naming-check:
name: Inclusive naming
uses: canonical/inclusive-naming/.github/workflows/woke.yaml@main
with:
fail-on-error: "true"
lint-unit:
name: Lint Unit
uses: charmed-kubernetes/workflows/.github/workflows/lint-unit.yaml@main
with:
python: "['3.8', '3.10', '3.12']"
needs:
- call-inclusive-naming-check
test-with-uv:
name: Lint and Unit Tests (with uv)
runs-on: ubuntu-24.04
strategy:
matrix:
python-version:
- "3.8"
- "3.10"
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests
run:
tox -e unit,lint