Skip to content

Commit b9c9307

Browse files
authored
feat: enhance CI workflow to support multiple OS environments (#19)
* feat: enhance CI workflow to support multiple OS environments * try os-13 * swap install order * use numpy 1.* for the runner
1 parent 5801748 commit b9c9307

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ on:
1212
jobs:
1313
build:
1414

15-
runs-on: ubuntu-latest
15+
runs-on: ${{matrix.os}}
1616
strategy:
1717
fail-fast: false
1818
matrix:
1919
python-version: ["3.8", "3.9", "3.10"]
20+
os: [ubuntu-latest, macos-13]
2021

2122
steps:
2223
- uses: actions/checkout@v3
@@ -28,7 +29,7 @@ jobs:
2829
run: |
2930
python -m pip install --upgrade pip
3031
python -m pip install flake8 pytest
31-
pip install numpy numba
32+
pip install "numpy<2.0" numba
3233
pip install torch --index-url https://download.pytorch.org/whl/cpu
3334
- name: Lint with flake8
3435
run: |

0 commit comments

Comments
 (0)