From 2231fe5506d438415b3df9042dae1cb641a2d42b Mon Sep 17 00:00:00 2001 From: Ross Beyer Date: Wed, 10 Jul 2024 15:54:54 -0700 Subject: [PATCH] build(github workflows): Updated actions. --- .github/workflows/code-cover.yml | 26 ++++++++++++++------------ .github/workflows/python-test.yml | 22 +++++++++++----------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/.github/workflows/code-cover.yml b/.github/workflows/code-cover.yml index e46ae8d..a2c4a34 100644 --- a/.github/workflows/code-cover.yml +++ b/.github/workflows/code-cover.yml @@ -18,20 +18,20 @@ jobs: shell: bash -l {0} steps: - name: Conda setup - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: - environment-file: false - channel-priority: flexible - channels: usgs-astrogeology, conda-forge + environment-name: isis + create-args: >- + isis=8.0.3 + condarc: | + channels: + - usgs-astrogeology + - conda-forge + channel-priority: flexible - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - - name: Install ISIS - run: | - micromamba create --name isis - micromamba activate isis - micromamba install -y isis=7.2.0 - name: Setup test-resources/ run: | mkdir $GITHUB_WORKSPACE/test-resources/ @@ -51,6 +51,8 @@ jobs: export ISISDATA=$MAMBA_ROOT_PREFIX/envs/isis pytest --cov=./kalasiris --cov-report=xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - fail_ci_if_error: true + verbse: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index dfc5712..9d79dac 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -31,17 +31,22 @@ jobs: strategy: matrix: # isis 4.4.0 apparently needs jpeg 9b, which is missing - isis-version: [5.0.2, 6.0.0, 7.2.0] + isis-version: [5.0.2, 6.0.0, 7.2.0, 8.0.3] steps: - name: Conda setup - uses: mamba-org/provision-with-micromamba@main + uses: mamba-org/setup-micromamba@v1 with: - environment-file: false - channel-priority: flexible - channels: usgs-astrogeology, conda-forge + environment-name: isis + create-args: >- + isis=${{ matrix.isis-version }} + condarc: | + channels: + - usgs-astrogeology + - conda-forge + channel-priority: flexible - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} - name: Download IMG artifact @@ -52,11 +57,6 @@ jobs: run: | tar -xvf img.tar ls -R - - name: Install ISIS - run: | - micromamba create --name isis - micromamba activate isis - micromamba install -y isis=${{ matrix.isis-version }} - name: Lint with flake8 run: | micromamba activate isis