Skip to content

Commit 69f6f62

Browse files
Run more Windows tests and use cmd shell
But don't run tests_distributions.py on Windows because it runs into aesara-devs/aesara#485
1 parent f3bb085 commit 69f6f62

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/pytest.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,30 @@ jobs:
135135
strategy:
136136
matrix:
137137
os: [windows-latest]
138-
floatx: [float64]
138+
floatx: [float32, float64]
139139
test-subset:
140-
- pymc3/tests/test_distributions_random.py
141-
- pymc3/tests/test_sampling.py
140+
- |
141+
pymc3/tests/test_distributions_random.py
142+
- |
143+
pymc3/tests/test_sampling.py
144+
pymc3/tests/test_shared.py
145+
- |
146+
pymc3/tests/test_gp.py
147+
pymc3/tests/test_ode.py
148+
- |
149+
pymc3/tests/test_model.py
150+
pymc3/tests/test_model_func.py
151+
pymc3/tests/test_modelcontext.py
152+
pymc3/tests/test_pickling.py
153+
154+
fail-fast: false
142155
runs-on: ${{ matrix.os }}
143156
env:
144157
TEST_SUBSET: ${{ matrix.test-subset }}
145158
AESARA_FLAGS: floatX=${{ matrix.floatx }},gcc__cxxflags='-march=core2'
146159
defaults:
147160
run:
148-
shell: bash -l {0}
161+
shell: cmd
149162
steps:
150163
- uses: actions/checkout@v2
151164
- name: Cache conda
@@ -180,6 +193,9 @@ jobs:
180193
conda activate pymc3-dev-py38
181194
pip install -e .
182195
python --version
183-
- run: |
184-
conda activate pymc3-dev-py38
185-
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
196+
- name: Run tests
197+
# This job uses a cmd shell, therefore the environment variable syntax is different!
198+
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
199+
run: >-
200+
conda activate pymc3-dev-py38 &&
201+
python -m pytest -vv --cov=pymc3 --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%

0 commit comments

Comments
 (0)