Skip to content

Commit 8205f76

Browse files
committed
Add GitHub Actions workflows
1 parent fd2e02a commit 8205f76

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run pytest
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
- name: Install uv
19+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
20+
- name: Run pytest
21+
run: uv run pytest

.github/workflows/tox.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Run tox
2+
3+
on:
4+
workflow_dispatch:
5+
# Manual trigger only
6+
7+
jobs:
8+
tox:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
- name: Set up Python
14+
uses: actions/setup-python@v5
15+
with:
16+
python-version: '3.12'
17+
- name: Install uv
18+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
19+
- name: Run tox
20+
run: uv run tox

0 commit comments

Comments
 (0)