Skip to content

Commit bb0262b

Browse files
author
Benedikt Ehinger
committed
first try for uv pytest workflow
1 parent 857e423 commit bb0262b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: 3.12
21+
22+
- name: Install uv (fast Python package installer)
23+
run: |
24+
curl -LsSf https://astral.sh/uv/install.sh | sh
25+
export PATH="$HOME/.local/bin:$PATH"
26+
echo "$PATH" >> $GITHUB_ENV
27+
28+
- name: Install dependencies with uv
29+
run: |
30+
# Install project dependencies (from pyproject.toml)
31+
uv sync
32+
33+
- name: Run tests with uv
34+
run: |
35+
uv run pytest

0 commit comments

Comments
 (0)