Skip to content

Merge pull request #19 from oqtopus-team/chore/gitignore #57

Merge pull request #19 from oqtopus-team/chore/gitignore

Merge pull request #19 from oqtopus-team/chore/gitignore #57

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }} with uv
uses: ./.github/actions/setup-python-with-uv
with:
python-version: ${{ matrix.python-version }}
- name: Lint
run: uv run ruff check --output-format=github .
- name: Format
run: uv run ruff format . --check --diff
- name: Check Python types
run: uv run mypy
- name: Run Pytest if directory exists
run: |
if [ -d "./tests/" ]; then
uv run pytest -s
fi
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
slug: oqtopus-team/tranqu