Skip to content

Commit

Permalink
Use micromamba 2 on the CI
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Nov 26, 2024
1 parent 7558062 commit 106253f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,24 @@ jobs:
- uses: actions/checkout@v2

- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v1.9.0
uses: mamba-org/setup-micromamba@v2
with:
micromamba-version: 1.5.10-0
environment-name: test
cache-downloads: true
create-args: >-
python=3.9
pre-commit
pytest-cov
pytest-mock
- name: Install openslide for non-Win
run: |
sudo apt install openslide-tools
micromamba install openslide
echo ${{ matrix.sys.os }}
if: ${{ matrix.sys.os != 'windows-latest' }}

- name: Install openslide for Win
- name: Install openslide for Win
run: |
choco install wget --no-progress
wget https://github.com/openslide/openslide-winbuild/releases/download/v20221217/openslide-win64-20221217.zip
Expand All @@ -58,7 +57,7 @@ jobs:
if: ${{ matrix.sys.os == 'windows-latest' }}

- name: Run pre-commit hooks
run: |
run: |
micromamba run -n test pre-commit run -a
- name: Install package
Expand All @@ -73,8 +72,8 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
: # This GITHUB_WORKSPACE is bydefault set to D: driver whereas pytest's tmp_dir
: # default is C: ,thus we create a temp_test folder for pytest's tmp_dir to run on D: as well
: # This GITHUB_WORKSPACE is bydefault set to D: driver whereas pytest's tmp_dir
: # default is C: ,thus we create a temp_test folder for pytest's tmp_dir to run on D: as well
pytest -v --cov=tiledb --cov-report=term-missing --durations=0 tests/ > coverage.txt
exit_code=$?
TEST_COVERAGE="$(grep '^TOTAL' coverage.txt | awk -v N=4 '{print $N}')"
Expand Down Expand Up @@ -107,4 +106,4 @@ jobs:
label: Test Coverage
message: ${{ steps.stats.outputs.coverage }}
color: green
namedLogo: pytest
namedLogo: pytest

0 comments on commit 106253f

Please sign in to comment.