From 828bc82521168330229ce3e11114bcb1b588ed23 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 7 Dec 2022 08:17:59 -0500 Subject: [PATCH] ci: some minor fixes (#675) Signed-off-by: Henry Schreiner Signed-off-by: Henry Schreiner --- .github/workflows/ci.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1e90000..42d75d66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,22 @@ name: CI -on: [push, pull_request] +on: + push: + branches: [main] + pull_request: + env: FORCE_COLOR: "1" - PRE_COMMIT_COLOR: "always" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macos-latest] + os: [ubuntu-20.04, windows-latest, macos-latest] python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 @@ -18,10 +26,11 @@ jobs: python-version: ${{ matrix.python-version }} - name: Set up Miniconda uses: conda-incubator/setup-miniconda@v2 - if: matrix.python-version != '3.11' with: auto-update-conda: true python-version: ${{ matrix.python-version }} + miniforge-variant: Mambaforge + use-mamba: true - name: Install Nox-under-test run: | python -m pip install --disable-pip-version-check .