Skip to content

Commit 8b05ae1

Browse files
committed
ci(tests): add tests on windows + mac (not just windows)
1 parent 91482c3 commit 8b05ae1

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,41 @@
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+
15
name: tests
26

37
on:
48
push:
59
workflow_dispatch:
610

711
jobs:
8-
build-tests:
12+
13+
# Run tests on Ubuntu
14+
tests-on-ubuntu:
915
runs-on: ubuntu-latest
1016
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+
1139
- name: Check out repository
1240
uses: actions/checkout@v4
1341

@@ -19,4 +47,28 @@ jobs:
1947
- run: pip install -r requirements.txt
2048

2149
- 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

0 commit comments

Comments
 (0)