Skip to content

Commit c145a6f

Browse files
authored
Add Python 3.11 to CI. (#31)
1 parent 3001846 commit c145a6f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ concurrency:
55
group: ${{ github.head_ref || github.run_id }}
66
cancel-in-progress: true
77

8+
env:
9+
CONDA_EXE: mamba
10+
811
on:
912
push:
1013
branches:
@@ -24,18 +27,20 @@ jobs:
2427
fail-fast: false
2528
matrix:
2629
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']
2831

2932
steps:
3033
- uses: actions/checkout@v2
3134
- uses: conda-incubator/setup-miniconda@v2
3235
with:
33-
auto-update-conda: true
36+
auto-update-conda: false
3437
python-version: ${{ matrix.python-version }}
38+
channels: conda-forge,nodefaults
39+
mamba-version: "*"
3540

3641
- name: Install core dependencies.
3742
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
3944

4045
# Unit, integration, and end-to-end tests.
4146

@@ -44,7 +49,7 @@ jobs:
4449
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4550

4651
- 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'
4853
shell: bash -l {0}
4954
run: bash <(curl -s https://codecov.io/bash) -F unit -c
5055

@@ -53,6 +58,6 @@ jobs:
5358
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
5459

5560
- 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'
5762
shell: bash -l {0}
5863
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c

0 commit comments

Comments
 (0)