Skip to content

Commit

Permalink
wip02
Browse files Browse the repository at this point in the history
  • Loading branch information
ovesh committed Feb 26, 2025
1 parent 0113fcc commit b1dca25
Showing 1 changed file with 3 additions and 55 deletions.
58 changes: 3 additions & 55 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,64 +20,12 @@ jobs:

test:
needs: build
strategy:
matrix:
python-version: [["39", "3.9"], ["310", "3.10"], ["311", "3.11"], ["312", "3.12"]]
platform: [["linux-64", "ubuntu-latest"], ["osx-64", "macos-latest"]]
runs-on: ${{ matrix.platform[1] }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: get meta.yaml from conda-forge for cache key calculation
uses: ./.github/actions/curl-meta-yaml

- name: restore mamba env
id: restore_mamba_cache
uses: actions/cache/restore@v4
with:
key: mamba-env-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/workflows/run-tests.yaml', '.github/actions/**') }}
path: |
~/micromamba
~/.condarc
~/bin/micromamba
fail-on-cache-miss: true

- name: restore the gk package tarballs
id: restore_gk_pkg
uses: actions/cache/restore@v4
with:
key: mamba-env-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/workflows/run-tests.yaml', '.github/actions/**', 'conda-recipe/meta.yaml', 'src/**', 'genome_kit/**', 'tests/**') }}
path: |
~/conda-bld
fail-on-cache-miss: true

- name: install mamba
uses: ./.github/actions/install-mamba
with:
installer-url: https://micro.mamba.pm/api/micromamba/${{ matrix.platform[0] }}/1.5.7

- name: create test env
shell: bash -l -e {0}
run: |
set -x
if [ ! -d "${HOME}/micromamba/envs/test" ]; then
micromamba create -yqn test -c conda-forge \
boa==0.16.0 mamba==1.5.7 conda==24.1.2 coverage
fi
set +x
- name: run unittests
id: run_unittests
- name: dummy step
shell: bash -l -e {0}
run: |
set -x
micromamba activate test
conda index ~/conda-bld
files=(~/conda-bld/*/*py${{ matrix.python-version[0] }}*.tar.bz2)
if [ ! -e "${files[0]}" ]; then
echo "No files matched for py${{ matrix.python-version[0] }}"
exit 1
fi
conda mambabuild --croot /tmp/conda-bld -t $files --extra-deps python=${{ matrix.python-version[1] }}
conda clean -it
echo done
set +x

0 comments on commit b1dca25

Please sign in to comment.