Skip to content

Commit 33beccb

Browse files
authored
Add Python 3.11 to CI. (#27)
1 parent 3b2478c commit 33beccb

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 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:
@@ -19,25 +22,25 @@ jobs:
1922

2023
name: Run tests for ${{ matrix.os }} on ${{ matrix.python-version }}
2124
runs-on: ${{ matrix.os }}
22-
env:
23-
CONDA_EXE: mamba
2425

2526
strategy:
2627
fail-fast: false
2728
matrix:
2829
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
29-
python-version: ['3.7', '3.8', '3.9', '3.10']
30+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3031

3132
steps:
3233
- uses: actions/checkout@v2
3334
- uses: conda-incubator/setup-miniconda@v2
3435
with:
35-
auto-update-conda: true
36+
auto-update-conda: false
3637
python-version: ${{ matrix.python-version }}
38+
channels: conda-forge,nodefaults
39+
mamba-version: "*"
3740

3841
- name: Install core dependencies.
3942
shell: bash -l {0}
40-
run: conda install -c conda-forge tox-conda coverage
43+
run: mamba install -c conda-forge tox-conda coverage
4144

4245
- name: Run end-to-end tests.
4346
shell: bash -l {0}
@@ -58,7 +61,7 @@ jobs:
5861
- uses: actions/checkout@v2
5962
- uses: conda-incubator/setup-miniconda@v2
6063
with:
61-
auto-update-conda: true
64+
auto-update-conda: false
6265

6366
- name: Install core dependencies.
6467
shell: bash -l {0}

hooks/pre_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
MODULE_REGEX = r"^[_a-zA-Z][_a-zA-Z0-9]*$"
55
ENVIRON_REGEX = r"^[-_a-zA-Z0-9]*$"
6-
PYTHONVERSION_REGEX = r"^(3\.(10|[7-9])(\.[0-9]{1,2})?)$"
6+
PYTHONVERSION_REGEX = r"^(3\.(1[0-9]|[7-9])(\.[0-9]{1,2})?)$"
77
PYTHONVERSION_MIN = "3.7"
88

99
EXCEPTION_MSG_MODULE_NAME = """

{{cookiecutter.project_slug}}/.github/workflows/main.yml

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

8+
env:
9+
CONDA_EXE: mamba
810

911
on:
1012
push:
@@ -25,18 +27,20 @@ jobs:
2527
fail-fast: false
2628
matrix:
2729
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
28-
python-version: ['3.7', '3.8', '3.9', '3.10']
30+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
2931

3032
steps:
3133
- uses: actions/checkout@v2
3234
- uses: conda-incubator/setup-miniconda@v2
3335
with:
3436
auto-update-conda: true
3537
python-version: ${{ matrix.python-version }}
38+
channels: conda-forge,nodefaults
39+
mamba-version: "*"
3640

3741
- name: Install core dependencies.
3842
shell: bash -l {0}
39-
run: conda install -c conda-forge tox-conda coverage
43+
run: mamba install -c conda-forge tox-conda coverage
4044

4145
# Unit, integration, and end-to-end tests.
4246

0 commit comments

Comments
 (0)