Skip to content

Commit 11ff287

Browse files
committed
ci: run unit tests on Windows and MacOS
Signed-off-by: Lance Drane <dranelt@ornl.gov>
1 parent 62dab0e commit 11ff287

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,37 @@ jobs:
3333
pdm run ruff check
3434
pdm run lint-mypy
3535
36-
test:
36+
# Run unit tests only on Windows/MacOS, we can run the full test suite on Linux
37+
test-unit:
38+
name: Test with coverage
39+
strategy:
40+
matrix:
41+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
42+
os:
43+
- macos-latest
44+
- windows-latest
45+
runs-on: ${{ matrix.os }}
46+
steps:
47+
- uses: actions/checkout@v4
48+
- name: Setup PDM
49+
uses: pdm-project/setup-pdm@v4
50+
with:
51+
python-version: ${{ matrix.python-version }}
52+
cache: true
53+
- name: Install dependencies
54+
run: |
55+
pdm venv create --with-pip --force $PYTHON
56+
pdm sync --dev -G:all
57+
- run: pdm run test-unit
58+
59+
# we can only run our full test suite on Ubuntu due to the Github Actions services requirement
60+
test-complete:
3761
name: Test with coverage
3862
strategy:
3963
matrix:
4064
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
4165
os:
4266
- ubuntu-latest
43-
# TODO - can't use service containers outside of Ubuntu
44-
#- macos-latest
45-
#- windows-latest
4667
runs-on: ${{ matrix.os }}
4768
services:
4869
rabbitmq:

0 commit comments

Comments
 (0)