Skip to content

Commit 3d24879

Browse files
authored
Add Python 3.11 to CI. (#47)
1 parent 186589c commit 3d24879

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,20 +27,22 @@ 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: r-lib/actions/setup-tinytex@v1
3235
if: runner.os != 'Windows'
3336
- uses: conda-incubator/setup-miniconda@v2
3437
with:
35-
auto-update-conda: true
38+
auto-update-conda: false
3639
python-version: ${{ matrix.python-version }}
40+
channels: conda-forge,nodefaults
41+
mamba-version: "*"
3742

3843
- name: Install core dependencies.
3944
shell: bash -l {0}
40-
run: conda install -c conda-forge tox-conda coverage
45+
run: mamba install -c conda-forge tox-conda coverage
4146

4247
# Unit, integration, and end-to-end tests.
4348

@@ -46,7 +51,7 @@ jobs:
4651
run: tox -e pytest -- -m "unit or (not integration and not end_to_end)" --cov=./ --cov-report=xml -n auto
4752

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

@@ -55,6 +60,6 @@ jobs:
5560
run: tox -e pytest -- -m end_to_end --cov=./ --cov-report=xml -n auto
5661

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

0 commit comments

Comments
 (0)