Skip to content

Commit e1be7de

Browse files
authored
Add Python 3.11 to CI. (#9)
1 parent 76ec553 commit e1be7de

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/main.yml

+9-4
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:
@@ -26,18 +29,20 @@ jobs:
2629
fail-fast: false
2730
matrix:
2831
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
29-
python-version: ['3.7', '3.8', '3.9', '3.10']
32+
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
3033

3134
steps:
3235
- uses: actions/checkout@v2
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
- name: Run end-to-end tests.
4348
shell: bash -l {0}
@@ -58,7 +63,7 @@ jobs:
5863
- uses: actions/checkout@v2
5964
- uses: conda-incubator/setup-miniconda@v2
6065
with:
61-
auto-update-conda: true
66+
auto-update-conda: false
6267

6368
- name: Install core dependencies.
6469
shell: bash -l {0}

hooks/pre_gen_project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
MODULE_REGEX = r"^[-_a-zA-Z0-9]*$"
77
ENVIRON_REGEX = r"^[-_a-zA-Z0-9]*$"
8-
PYTHONVERSION_REGEX = r"^(3)\.(7|8|9|10)$"
8+
PYTHONVERSION_REGEX = r"^(3\.(1[0-9]|[7-9])(\.[0-9]{1,2})?)$"
99

1010
EXCEPTION_MSG_MODULE_NAME = """
1111
ERROR: The project slug ({}) is not a valid Python module name.

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

+9-4
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
3944

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

@@ -66,7 +71,7 @@ jobs:
6671
- uses: actions/checkout@v2
6772
- uses: conda-incubator/setup-miniconda@v2
6873
with:
69-
auto-update-conda: true
74+
auto-update-conda: false
7075

7176
- name: Install core dependencies.
7277
shell: bash -l {0}

0 commit comments

Comments
 (0)