File tree Expand file tree Collapse file tree 1 file changed +54
-2
lines changed Expand file tree Collapse file tree 1 file changed +54
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This file runs the tests in `tests/` with every push to GitHub
2
+ # They will run in parallel, and run on three operating systems:
3
+ # Ubuntu, Windows and Mac.
4
+
1
5
name : tests
2
6
3
7
on :
4
8
push :
5
9
workflow_dispatch :
6
10
7
11
jobs :
8
- build-tests :
12
+
13
+ # Run tests on Ubuntu
14
+ tests-on-ubuntu :
9
15
runs-on : ubuntu-latest
10
16
steps :
17
+
18
+ - name : Check out repository
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install python and dependencies
22
+ uses : actions/setup-python@v4
23
+ with :
24
+ python-version : ' 3.13'
25
+ cache : ' pip'
26
+ - run : pip install -r requirements.txt
27
+
28
+ - name : Run tests
29
+ run : pytest
30
+
31
+ - name : List the environment variables
32
+ run : env
33
+
34
+ # Run tests on Windows
35
+ tests-on-windows :
36
+ runs-on : windows-latest
37
+ steps :
38
+
11
39
- name : Check out repository
12
40
uses : actions/checkout@v4
13
41
19
47
- run : pip install -r requirements.txt
20
48
21
49
- name : Run tests
22
- run : pytest
50
+ run : pytest
51
+
52
+ - name : List the environment variables
53
+ run : env
54
+
55
+ # Run tests on Mac
56
+ tests-on-macos :
57
+ runs-on : macos-latest
58
+ steps :
59
+
60
+ - name : Check out repository
61
+ uses : actions/checkout@v4
62
+
63
+ - name : Install python and dependencies
64
+ uses : actions/setup-python@v4
65
+ with :
66
+ python-version : ' 3.13'
67
+ cache : ' pip'
68
+ - run : pip install -r requirements.txt
69
+
70
+ - name : Run tests
71
+ run : pytest
72
+
73
+ - name : List the environment variables
74
+ run : env
You can’t perform that action at this time.
0 commit comments