Skip to content

Commit

Permalink
Add tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Dec 17, 2024
1 parent 179f145 commit 7b19e46
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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

0 comments on commit 7b19e46

Please sign in to comment.