Skip to content

chore: use uv for project management #190

chore: use uv for project management

chore: use uv for project management #190

Workflow file for this run

name: Python tests
on:
pull_request:
branches: [main]
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
# Install a specific uv version using the installer
run: curl -LsSf https://astral.sh/uv/0.3.3/install.sh | sh
- name: Install the project
run: uv sync --all-extras --dev
- name: Linting
run: |
uv run mypy itscalledsoccer
uv run ruff check itscalledsoccer
- name: Run Pytest and generate coverage file
run: |
uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=itscalledsoccer tests/ | tee pytest-coverage.txt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}