17
17
ubuntu :
18
18
strategy :
19
19
matrix :
20
- os : [ubuntu-18.04]
21
- floatx : [float32, float64]
20
+ os : [ubuntu-latest]
21
+ floatx : [float64]
22
+ python-version : ["3.8"]
22
23
test-subset :
23
24
- pymc_experimental/tests
24
25
fail-fast : false
@@ -34,12 +35,12 @@ jobs:
34
35
- name : Cache conda
35
36
uses : actions/cache@v1
36
37
env :
37
- # Increase this value to reset cache if environment-test-py38 .yml has not changed
38
+ # Increase this value to reset cache if environment-test.yml has not changed
38
39
CACHE_NUMBER : 0
39
40
with :
40
41
path : ~/conda_pkgs_dir
41
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
42
- hashFiles('conda-envs/environment-test-py38 .yml') }}
42
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
43
+ hashFiles('conda-envs/environment-test.yml') }}
43
44
- name : Cache multiple paths
44
45
uses : actions/cache@v2
45
46
env :
@@ -57,19 +58,20 @@ jobs:
57
58
miniforge-variant : Mambaforge
58
59
miniforge-version : latest
59
60
mamba-version : " *"
60
- activate-environment : pymc-test-py38
61
+ activate-environment : pymc-test
61
62
channel-priority : strict
62
- environment-file : conda-envs/environment-test-py38.yml
63
+ environment-file : conda-envs/environment-test.yml
64
+ python-version : ${{matrix.python-version}}
63
65
use-mamba : true
64
66
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
65
67
- name : Install-pymc
66
68
run : |
67
- conda activate pymc-test-py38
69
+ conda activate pymc-test
68
70
pip install -e .
69
71
python --version
70
72
- name : Run tests
71
73
run : |
72
- conda activate pymc-test-py38
74
+ conda activate pymc-test
73
75
python -m pytest -vv --cov=pymc_experimental --cov-append --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET
74
76
- name : Upload coverage to Codecov
75
77
uses : codecov/codecov-action@v2
81
83
strategy :
82
84
matrix :
83
85
os : [windows-latest]
84
- floatx : [float32, float64]
86
+ floatx : [float32]
87
+ python-version : ["3.10"]
85
88
test-subset :
86
89
- pymc_experimental/tests
87
90
fail-fast : false
@@ -97,12 +100,12 @@ jobs:
97
100
- name : Cache conda
98
101
uses : actions/cache@v1
99
102
env :
100
- # Increase this value to reset cache if conda-envs/environment-test-py37 .yml has not changed
103
+ # Increase this value to reset cache if conda-envs/windows- environment-test.yml has not changed
101
104
CACHE_NUMBER : 0
102
105
with :
103
106
path : ~/conda_pkgs_dir
104
- key : ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
105
- hashFiles('conda-envs/windows-environment-test-py37 .yml') }}
107
+ key : ${{ runner.os }}-py${{matrix.python-version}}- conda-${{ env.CACHE_NUMBER }}-${{
108
+ hashFiles('conda-envs/windows-environment-test.yml') }}
106
109
- name : Cache multiple paths
107
110
uses : actions/cache@v2
108
111
env :
@@ -120,21 +123,22 @@ jobs:
120
123
miniforge-variant : Mambaforge
121
124
miniforge-version : latest
122
125
mamba-version : " *"
123
- activate-environment : pymc-test-py37
126
+ activate-environment : pymc-test
124
127
channel-priority : strict
125
- environment-file : conda-envs/windows-environment-test-py37.yml
128
+ environment-file : conda-envs/windows-environment-test.yml
129
+ python-version : ${{matrix.python-version}}
126
130
use-mamba : true
127
131
use-only-tar-bz2 : true # IMPORTANT: This needs to be set for caching to work properly!
128
132
- name : Install-pymc
129
133
run : |
130
- conda activate pymc-test-py37
134
+ conda activate pymc-test
131
135
pip install -e .
132
136
python --version
133
137
- name : Run tests
134
138
# This job uses a cmd shell, therefore the environment variable syntax is different!
135
139
# The ">-" in the next line replaces newlines with spaces (see https://stackoverflow.com/a/66809682).
136
140
run : >-
137
- conda activate pymc-test-py37 &&
141
+ conda activate pymc-test &&
138
142
python -m pytest -vv --cov=pymc_experimental --cov-append --cov-report=xml --cov-report term --durations=50 %TEST_SUBSET%
139
143
- name : Upload coverage to Codecov
140
144
uses : codecov/codecov-action@v2
0 commit comments