@@ -27,20 +27,22 @@ jobs:
2727 fail-fast : false
2828 matrix :
2929 os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
30- python-version : ['3.7', '3. 8', '3.9', '3.10', '3.11']
30+ python-version : ['3.8', '3.9', '3.10', '3.11']
3131
3232 steps :
3333 - uses : actions/checkout@v3
34- - uses : conda-incubator /setup-miniconda@v2.2.0
34+ - uses : mamba-org /setup-micromamba@v1
3535 with :
36- auto-update-conda : false
37- python-version : ${{ matrix.python-version }}
38- channels : conda-forge,nodefaults
39- miniforge-variant : Mambaforge
40-
41- - name : Install core dependencies.
42- shell : bash -l {0}
43- run : mamba install -c conda-forge tox-conda coverage
36+ environment-name : gha-testing
37+ condarc : |
38+ channels:
39+ - nodefaults
40+ - conda-forge
41+ create-args : >-
42+ python=${{ matrix.python-version }}
43+ mamba
44+ tox-conda
45+ cache-environment : true
4446
4547 # Unit, integration, and end-to-end tests.
4648
4951 run : tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml -n auto
5052
5153 - name : Upload coverage report for unit tests and doctests.
52- if : runner.os == 'Linux' && matrix.python-version == '3.8 '
54+ if : runner.os == 'Linux' && matrix.python-version == '3.10 '
5355 shell : bash -l {0}
5456 run : bash <(curl -s https://codecov.io/bash) -F unit -c
5557
5860 run : tox -e pytest -- -m integration --cov=src --cov=tests --cov-report=xml -n auto
5961
6062 - name : Upload coverage reports of integration tests.
61- if : runner.os == 'Linux' && matrix.python-version == '3.8 '
63+ if : runner.os == 'Linux' && matrix.python-version == '3.10 '
6264 shell : bash -l {0}
6365 run : bash <(curl -s https://codecov.io/bash) -F integration -c
6466
6769 run : tox -e pytest -- -m end_to_end --cov=src --cov=tests --cov-report=xml -n auto
6870
6971 - name : Upload coverage reports of end-to-end tests.
70- if : runner.os == 'Linux' && matrix.python-version == '3.8 '
72+ if : runner.os == 'Linux' && matrix.python-version == '3.10 '
7173 shell : bash -l {0}
7274 run : bash <(curl -s https://codecov.io/bash) -F end_to_end -c
0 commit comments