Skip to content

Commit 849a28c

Browse files
committed
add test workflow
1 parent 92b4127 commit 849a28c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,32 @@ on:
99
- main
1010

1111
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v6
20+
with:
21+
python-version-file: "pyproject.toml"
22+
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v7
25+
with:
26+
enable-cache: true
27+
28+
- name: Run tests
29+
uses: uv run pytest --junit-xml=pytest.xml
30+
31+
- name: Publish Test Results
32+
if: ${{ always() }}
33+
uses: mikepenz/action-junit-report@v5
34+
with:
35+
report_paths: "**/*.xml"
36+
annotate_only: ${{ github.event_name == 'pull_request' }}
37+
1238
lint:
1339
runs-on: ubuntu-latest
1440
steps:

0 commit comments

Comments
 (0)