Skip to content

Merge pull request #127 from narumiruna/remove-pip-from-dev #178

Merge pull request #127 from narumiruna/remove-pip-from-dev

Merge pull request #127 from narumiruna/remove-pip-from-dev #178

Workflow file for this run

name: Python
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- name: Install Python
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync
- name: Lint
run: uv run ruff check .
- name: Type check
run: uv run mypy .
- name: Test
run: uv run pytest -v -s --cov=src --cov-report=xml tests
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}