Skip to content

Commit 08752e4

Browse files
committed
Add GitHub Actions test workflow
1 parent 44997b3 commit 08752e4

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Python tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
test:
17+
name: Run pytest
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
21+
steps:
22+
- name: Check out repository
23+
uses: actions/checkout@v6
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
cache: pip
30+
cache-dependency-path: requirements.txt
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
python -m pip install -r requirements.txt
36+
37+
- name: Run tests
38+
run: python -m pytest
39+
40+

0 commit comments

Comments
 (0)