1 parent 44997b3 commit 08752e4Copy full SHA for 08752e4
1 file changed
.github/workflows/tests.yml
@@ -0,0 +1,40 @@
1
+name: Python tests
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
9
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