From 5077b4493990e51ae7fe19f3903ed5c6d24bf13b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 11 Mar 2024 09:35:47 +0100 Subject: [PATCH 1/2] MNT: update CI action versions --- .github/workflows/ci.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 22221e3..575c903 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,6 +7,10 @@ on: pull_request: workflow_dispatch: # allows you to trigger manually +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: pre-job: runs-on: ubuntu-latest @@ -39,12 +43,13 @@ jobs: with: access_token: ${{ github.token }} - uses: actions/checkout@v4 - - uses: mamba-org/provision-with-micromamba@main + - uses: mamba-org/setup-micromamba@v1 with: environment-name: open-radar-data-dev environment-file: ci/environment.yml - extra-specs: | - python=${{ matrix.python-version }} + create-args: >- + python=${{matrix.python-version}} + conda - name: Set up conda environment run: | python -m pip install -e . @@ -53,7 +58,7 @@ jobs: run: | python -m pytest --cov=./ --cov-report=xml --verbose - name: Upload code coverage to Codecov - uses: codecov/codecov-action@v3.1.4 + uses: codecov/codecov-action@v4 with: file: ./coverage.xml flags: unittests From cfe6b1d8aad4cd0d9afe8aab84a0693fec8594e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Mon, 11 Mar 2024 09:37:09 +0100 Subject: [PATCH 2/2] MNT: update CI action versions, add concurrency, remove cancel-workflow-action --- .github/workflows/ci.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 575c903..77d9bc3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,10 +38,6 @@ jobs: matrix: python-version: ['3.9', '3.10', '3.11'] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - uses: actions/checkout@v4 - uses: mamba-org/setup-micromamba@v1 with: