@@ -5,6 +5,9 @@ concurrency:
5
5
group : ${{ github.head_ref || github.run_id }}
6
6
cancel-in-progress : true
7
7
8
+ env :
9
+ CONDA_EXE : mamba
10
+
8
11
on :
9
12
push :
10
13
branches :
@@ -24,20 +27,22 @@ jobs:
24
27
fail-fast : false
25
28
matrix :
26
29
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
27
- python-version : ['3.7', '3.8', '3.9', '3.10']
30
+ python-version : ['3.7', '3.8', '3.9', '3.10', '3.11' ]
28
31
29
32
steps :
30
33
- uses : actions/checkout@v2
31
34
- uses : r-lib/actions/setup-tinytex@v1
32
35
if : runner.os != 'Windows'
33
36
- uses : conda-incubator/setup-miniconda@v2
34
37
with :
35
- auto-update-conda : true
38
+ auto-update-conda : false
36
39
python-version : ${{ matrix.python-version }}
40
+ channels : conda-forge,nodefaults
41
+ mamba-version : " *"
37
42
38
43
- name : Install core dependencies.
39
44
shell : bash -l {0}
40
- run : conda install -c conda-forge tox-conda coverage
45
+ run : mamba install -c conda-forge tox-conda coverage
41
46
42
47
# Unit, integration, and end-to-end tests.
43
48
46
51
run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
47
52
48
53
- name : Upload coverage report for unit tests and doctests.
49
- if : runner.os == 'Linux' && matrix.python-version == '3.9 '
54
+ if : runner.os == 'Linux' && matrix.python-version == '3.8 '
50
55
shell : bash -l {0}
51
56
run : bash <(curl -s https://codecov.io/bash) -F unit -c
52
57
55
60
run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
56
61
57
62
- name : Upload coverage reports of end-to-end tests.
58
- if : runner.os == 'Linux' && matrix.python-version == '3.9 '
63
+ if : runner.os == 'Linux' && matrix.python-version == '3.8 '
59
64
shell : bash -l {0}
60
65
run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
0 commit comments