From ab877f789f7683f6ec4ea22ea72a5ef91b74185f Mon Sep 17 00:00:00 2001 From: Arya Massarat <23412689+aryarm@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:49:39 -0700 Subject: [PATCH] ci: handle deprecations in gh actions and devcontainer (#259) --- .devcontainer.json | 2 +- .github/workflows/conventional-prs.yml | 2 +- .github/workflows/tests.yml | 19 +++++++++---------- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.devcontainer.json b/.devcontainer.json index fca467f8..55cccaca 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -7,7 +7,7 @@ "features": { "ghcr.io/rocker-org/devcontainer-features/miniforge:1": { "version": "latest", - "variant": "Mambaforge" + "variant": "Miniforge" } }, diff --git a/.github/workflows/conventional-prs.yml b/.github/workflows/conventional-prs.yml index 6dd62f7f..91e887c9 100644 --- a/.github/workflows/conventional-prs.yml +++ b/.github/workflows/conventional-prs.yml @@ -18,6 +18,6 @@ jobs: statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR runs-on: ubuntu-latest steps: - - uses: amannn/action-semantic-pull-request@v5.0.2 + - uses: amannn/action-semantic-pull-request@v5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4b20e043..04aefb35 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,11 +31,10 @@ jobs: - name: Check out the repository uses: actions/checkout@v4 - - name: Setup Mambaforge + - name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: activate-environment: haptools - miniforge-variant: Mambaforge auto-activate-base: false miniforge-version: latest use-mamba: true @@ -46,7 +45,7 @@ jobs: shell: bash - name: Cache Conda env - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.CONDA }}/envs key: @@ -81,12 +80,12 @@ jobs: run: | nox --verbose --python=${{ matrix.python }} - - name: Upload coverage data - if: always() && matrix.session == 'tests' - uses: "actions/upload-artifact@v3" - with: - name: coverage-data - path: ".coverage.*" + # - name: Upload coverage data + # if: always() && matrix.session == 'tests' + # uses: actions/upload-artifact@v4 + # with: + # name: coverage-data + # path: ".coverage.*" large-files: name: File sizes @@ -96,7 +95,7 @@ jobs: uses: actions/checkout@v4 - name: Check for large files - uses: actionsdesk/lfs-warning@v3.2 + uses: ppremk/lfs-warning@v3.3 with: token: ${{ secrets.GITHUB_TOKEN }} # Optional filesizelimit: 500000b