Skip to content

Commit 5c33a23

Browse files
committed
Tests GH Actions matrix (OS versions) (redux)
1 parent c2129da commit 5c33a23

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version: ["3.10", "3.x"]
13-
os-version: ["openstudio==3.6.1", "openstudio==3.10.0"]
13+
openstudio-version: ["3.6.1", "3.10.0"]
1414

1515
steps:
1616
- name: Check out repository
@@ -20,7 +20,9 @@ jobs:
2020
with:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install dependencies
23-
run: python -m pip install --upgrade pip setuptools wheel ${{ matrix.os-version }} oslg
23+
run: |
24+
python -m pip install --upgrade pip setuptools wheel oslg
25+
python -m pip install openstudio==${{ matrix.openstudio-version }}
2426
- name: Run unit tests
2527
run: python -m unittest
2628

@@ -29,7 +31,7 @@ jobs:
2931
strategy:
3032
matrix:
3133
python-version: ["3.10", "3.x"]
32-
os-version: ["openstudio==3.6.1", "openstudio==3.10.0"]
34+
openstudio-version: ["3.6.1", "3.10.0"]
3335

3436
steps:
3537
- name: Check out repository
@@ -39,6 +41,8 @@ jobs:
3941
with:
4042
python-version: ${{ matrix.python-version }}
4143
- name: Install dependencies
42-
run: python -m pip install --upgrade pip setuptools wheel ${{ matrix.os-version }} oslg
44+
run: |
45+
python -m pip install --upgrade pip setuptools wheel oslg
46+
python -m pip install openstudio==${{ matrix.openstudio-version }}
4347
- name: Run unit tests
4448
run: python -m unittest

0 commit comments

Comments
 (0)