Skip to content

Commit 27e9314

Browse files
JOSS review: Test Suite for the infdb Python package #15 - github workflow copied
1 parent 8126a5c commit 27e9314

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v6
15+
with:
16+
enable-cache: true
17+
18+
- name: Install dependencies
19+
run: uv sync --group=test
20+
21+
- name: Run tests
22+
run: uv run pytest --cov=src --cov-report=xml --cov-report=html
23+
24+
- name: Upload coverage report
25+
uses: actions/upload-artifact@v4
26+
if: always()
27+
with:
28+
name: coverage-report
29+
path: htmlcov/
30+
retention-days: 7

0 commit comments

Comments
 (0)