Skip to content

Commit 1e597e0

Browse files
committed
Add test-python GitHub Actions CI workflow
1 parent 73067c7 commit 1e597e0

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Test Python
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions: {}
10+
11+
jobs:
12+
pytest:
13+
name: Pytest
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
python-version: ["3.13"]
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
21+
with:
22+
persist-credentials: false
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
29+
- name: Install a specific version of uv
30+
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
31+
with:
32+
version: "latest"
33+
34+
- name: Install dependencies
35+
run: uv sync
36+
37+
- name: Run pytest
38+
run: uv run pytest --verbose

0 commit comments

Comments
 (0)