Skip to content

Add code checks workflow #2

Add code checks workflow

Add code checks workflow #2

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
paths:
- "src/viracitapada/**"
- "tests/**"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/tests.yml"
pull_request:
branches:
- main
paths:
- "src/viracitapada/**"
- "tests/**"
- "pyproject.toml"
- "uv.lock"
- ".github/workflows/tests.yml"
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.7"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install dependencies
run: uv sync
- name: Run tests
run: uv run coverage run -m pytest && uv run coverage lcov
- name: Coveralls
uses: coverallsapp/github-action@v2