@@ -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,18 +27,20 @@ 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 : conda-incubator/setup-miniconda@v2
32
35
with :
33
- auto-update-conda : true
36
+ auto-update-conda : false
34
37
python-version : ${{ matrix.python-version }}
38
+ channels : conda-forge,nodefaults
39
+ mamba-version : " *"
35
40
36
41
- name : Install core dependencies.
37
42
shell : bash -l {0}
38
- run : conda install -c conda-forge tox-conda coverage
43
+ run : mamba install -c conda-forge tox-conda coverage mamba
39
44
40
45
# Unit, integration, and end-to-end tests.
41
46
44
49
run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
45
50
46
51
- name : Upload coverage report for unit tests and doctests.
47
- if : runner.os == 'Linux' && matrix.python-version == '3.9 '
52
+ if : runner.os == 'Linux' && matrix.python-version == '3.8 '
48
53
shell : bash -l {0}
49
54
run : bash <(curl -s https://codecov.io/bash) -F unit -c
50
55
53
58
run : tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
54
59
55
60
- name : Upload coverage reports of end-to-end tests.
56
- if : runner.os == 'Linux' && matrix.python-version == '3.9 '
61
+ if : runner.os == 'Linux' && matrix.python-version == '3.8 '
57
62
shell : bash -l {0}
58
63
run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
0 commit comments