From 75b8731c8f08b2993f8e2233575586411c9af2ee Mon Sep 17 00:00:00 2001 From: Johannes Buchner Date: Sun, 22 Oct 2023 12:21:37 +0200 Subject: [PATCH] [ci] micromamba also for xspec --- .github/workflows/test.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c7f05e..0f6f0e0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -168,7 +168,6 @@ jobs: Xspec: runs-on: ubuntu-latest timeout-minutes: 60 - if: false strategy: fail-fast: false matrix: @@ -195,15 +194,11 @@ jobs: path: ~/conda_pkgs_dir key: ${{ runner.os }}-Xspec-py${{matrix.python-version}}-conda-${{ env.CACHE_NUMBER }} - - uses: conda-incubator/setup-miniconda@v2 + - uses: mamba-org/setup-micromamba@v1 with: - miniforge-variant: Mambaforge - miniforge-version: latest - mamba-version: "*" - channel-priority: strict - python-version: ${{matrix.python-version}} - use-mamba: true - use-only-tar-bz2: false # IMPORTANT: This may break caching of conda packages! See https://github.com/conda-incubator/setup-miniconda/issues/267 + environment-name: test + cache-environment: true + cache-downloads: true - name: Set directory names run: | @@ -273,7 +268,7 @@ jobs: - name: Install python dependencies run: | - mamba install -y -c conda-forge ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml + micromamba install -y -c conda-forge ultranest coverage coveralls scipy "matplotlib>=3.5" h5py astropy requests cython tqdm coverage toml pip install git+https://github.com/JohannesBuchner/coverage-lcov sudo sed -i '/PDF/s/none/read|write/' /etc/ImageMagick-6/policy.xml @@ -308,11 +303,11 @@ jobs: - name: Test examples run: | - pushd examples/xspec; - source ${HEADAS}/headas-init.sh - PYTHONPATH=../../:$PYTHONPATH bash -v runall.sh || exit 1; - ls; - popd; + pushd examples/xspec; + source ${HEADAS}/headas-init.sh + PYTHONPATH=../../:$PYTHONPATH bash -v runall.sh || exit 1; + ls; + popd; - name: Install run: |