Skip to content

Commit

Permalink
build(github workflows): Updated actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbeyer committed Jul 10, 2024
1 parent c64d8fc commit 2231fe5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/code-cover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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 }}
22 changes: 11 additions & 11 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2231fe5

Please sign in to comment.