Skip to content

Commit 361271e

Browse files
committed
ci: add GitHub Actions pytest workflow
1 parent f20c953 commit 361271e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Run Python 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: Check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
22+
- name: Install test dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install pytest
26+
27+
- name: Run tests
28+
run: pytest

0 commit comments

Comments
 (0)