Skip to content

Commit 9c2ff03

Browse files
committed
Add GitHub Actions workflow
1 parent 7ddef0f commit 9c2ff03

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/python.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Python package workflow
2+
3+
name: Python package
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
jobs:
12+
check-and-test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout the project
16+
uses: actions/checkout@v5
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v6
19+
- name: Install the project
20+
run: uv sync
21+
- name: Run checks with ruff
22+
run: |
23+
uv run ruff check .
24+
uv run ruff format --check .
25+
- name: Run tests with pytest
26+
run: uv run pytest

0 commit comments

Comments
 (0)