From ac479c186a1d9b77f8ff241d279e5ca8268b660b Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 13 Nov 2022 10:46:13 +0100 Subject: [PATCH 1/2] Add Python 3.11 to CI. Committed via https://github.com/asottile/all-repos --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6b29ef..a60ee94 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: fail-fast: false matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2 From c6bf23def4b33570455b1a0d39ce03112cb5f104 Mon Sep 17 00:00:00 2001 From: Tobias Raabe Date: Sun, 13 Nov 2022 14:26:56 +0100 Subject: [PATCH 2/2] Fix. --- .github/workflows/main.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a60ee94..1315659 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,5 +1,13 @@ name: main +# Automatically cancel a previous run. +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +env: + CONDA_EXE: mamba + on: push: branches: @@ -8,10 +16,6 @@ on: branches: - '*' -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true - jobs: run-tests: @@ -30,12 +34,14 @@ jobs: - uses: r-lib/actions/setup-tinytex@v1 - uses: conda-incubator/setup-miniconda@v2 with: - auto-update-conda: true + auto-update-conda: false python-version: ${{ matrix.python-version }} + channels: conda-forge,nodefaults + mamba-version: "*" - name: Install core dependencies. shell: bash -l {0} - run: conda install -c conda-forge tox-conda coverage + run: mamba install -c conda-forge tox-conda coverage - name: Run end-to-end tests. shell: bash -l {0}