Skip to content

🔖 version: v0.24.0 #8

🔖 version: v0.24.0

🔖 version: v0.24.0 #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
activate-environment: true
- name: Install dependencies
run: uv sync
- name: Run ruff linting
run: ruff check .
- name: Run ruff formatting check
run: ruff format --check .
- name: Run tests with coverage
run: ./scripts/test.sh
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Jannchie/tgit
file: ./coverage.xml
fail_ci_if_error: true