Skip to content

Commit e0e0fbc

Browse files
committed
Add GitHub action to run tests
1 parent d825573 commit e0e0fbc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/python.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
uv-example:
11+
name: python
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
19+
with:
20+
# Install a specific version of uv.
21+
version: "0.5.13"
22+
23+
- name: "Set up Python"
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version-file: ".python-version"
27+
28+
- name: Install the project
29+
run: uv sync --all-extras --dev
30+
31+
- name: Run tests
32+
run: uv run pytest tests

0 commit comments

Comments
 (0)