Skip to content

Commit def2b39

Browse files
authored
Add Python 3.11 to CI. (#307)
1 parent 5b2e10f commit def2b39

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 3 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
3944

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

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ repos:
7777
hooks:
7878
- id: refurb
7979
args: [--ignore, FURB126]
80-
language_version: python3.10
8180
- repo: https://github.com/executablebooks/mdformat
8281
rev: 0.7.16
8382
hooks:

tests/test_debugging.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ def task_example():
172172

173173

174174
@pytest.mark.end_to_end
175+
@pytest.mark.xfail(reason="#312")
175176
@pytest.mark.skipif(not IS_PEXPECT_INSTALLED, reason="pexpect is not installed.")
176177
@pytest.mark.skipif(sys.platform == "win32", reason="pexpect cannot spawn on Windows.")
177178
def test_pdb_interaction_capturing_simple(tmp_path):
@@ -283,6 +284,7 @@ def task_2():
283284

284285

285286
@pytest.mark.end_to_end
287+
@pytest.mark.xfail(reason="#312")
286288
@pytest.mark.skipif(not IS_PEXPECT_INSTALLED, reason="pexpect is not installed.")
287289
@pytest.mark.skipif(sys.platform == "win32", reason="pexpect cannot spawn on Windows.")
288290
def test_pdb_interaction_capturing_twice(tmp_path):

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ conda_deps =
1313
pytest
1414
pytest-cov
1515
pytest-xdist
16-
coverage <=6.4.0
16+
coverage
1717

1818
# Package dependencies
1919
attrs

0 commit comments

Comments
 (0)