From 766af1f4619f165932552086d1574c281c7411ae Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Wed, 2 Oct 2024 11:12:38 -0700 Subject: [PATCH] Adjust github actions --- .github/workflows/assess-file-changes.yml | 2 +- .github/workflows/auto-publish.yml | 4 ++-- .github/workflows/dev-gallery.yml | 10 +++++----- .github/workflows/doc-link-checks.yml | 4 ++-- .github/workflows/read-nwbfile-tests.yml | 7 ++++--- .github/workflows/streaming-tests.yml | 7 ++++--- .github/workflows/testing.yml | 2 +- 7 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.github/workflows/assess-file-changes.yml b/.github/workflows/assess-file-changes.yml index dbf9661ef..1940ce536 100644 --- a/.github/workflows/assess-file-changes.yml +++ b/.github/workflows/assess-file-changes.yml @@ -17,7 +17,7 @@ jobs: name: Test changed-files steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml index da0f81a49..448ae10f3 100644 --- a/.github/workflows/auto-publish.yml +++ b/.github/workflows/auto-publish.yml @@ -11,9 +11,9 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.9" - name: Install dependencies diff --git a/.github/workflows/dev-gallery.yml b/.github/workflows/dev-gallery.yml index 5ed12a86c..a08932975 100644 --- a/.github/workflows/dev-gallery.yml +++ b/.github/workflows/dev-gallery.yml @@ -11,12 +11,12 @@ jobs: strategy: fail-fast: false steps: - - uses: s-weigand/setup-conda@v1 + - uses: conda-incubator/setup-miniconda@v3 with: - update-conda: true - python-version: 3.9 - conda-channels: conda-forge - - uses: actions/checkout@v3 + auto-update-conda: true + python-version: ${{ matrix.python-version }} + channels: conda-forge + - uses: actions/checkout@v4 - run: git fetch --prune --unshallow --tags - name: Install pytest diff --git a/.github/workflows/doc-link-checks.yml b/.github/workflows/doc-link-checks.yml index 3aaa4d5d8..c60e3f63a 100644 --- a/.github/workflows/doc-link-checks.yml +++ b/.github/workflows/doc-link-checks.yml @@ -9,10 +9,10 @@ jobs: strategy: fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: git fetch --prune --unshallow --tags - name: Setup Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 diff --git a/.github/workflows/read-nwbfile-tests.yml b/.github/workflows/read-nwbfile-tests.yml index d17d1522d..0fd0a9d8d 100644 --- a/.github/workflows/read-nwbfile-tests.yml +++ b/.github/workflows/read-nwbfile-tests.yml @@ -15,11 +15,12 @@ jobs: os: ["ubuntu-latest", "windows-latest"] # TODO: update mac and streaming methods python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - - uses: s-weigand/setup-conda@v1 + - uses: conda-incubator/setup-miniconda@v3 with: - update-conda: true + auto-update-conda: true python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v3 + channels: conda-forge + - uses: actions/checkout@v4 - run: git fetch --prune --unshallow --tags - name: Install pytest diff --git a/.github/workflows/streaming-tests.yml b/.github/workflows/streaming-tests.yml index e6d555b0c..e157a409c 100644 --- a/.github/workflows/streaming-tests.yml +++ b/.github/workflows/streaming-tests.yml @@ -15,11 +15,12 @@ jobs: os: ["ubuntu-latest", "windows-latest"] # TODO: update mac and streaming methods python-version: ["3.9", "3.10", "3.11", "3.12"] steps: - - uses: s-weigand/setup-conda@v1 + - uses: conda-incubator/setup-miniconda@v3 with: - update-conda: true + auto-update-conda: true python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v3 + channels: conda-forge + - uses: actions/checkout@v4 - run: git fetch --prune --unshallow --tags - name: Install pytest diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 9a8b80e9b..83ff8d553 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -23,7 +23,7 @@ jobs: auto-update-conda: true python-version: ${{ matrix.python-version }} channels: conda-forge - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: git fetch --prune --unshallow --tags - name: Install pytest