From ea9e565ba04bd79248680d24b0256da2621710d9 Mon Sep 17 00:00:00 2001 From: Elisa-Visentin <121040436+Elisa-Visentin@users.noreply.github.com> Date: Tue, 24 Oct 2023 17:29:37 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e366c77..64a53e1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,9 @@ jobs: uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml + environment-name: "ci" + + cache-downloads: true - name: Install dependencies env: @@ -59,8 +62,8 @@ jobs: run: | - mamba env create -n ci -f environment.yml - mamba activate ci + + # we install ctapipe using pip to be able to select any commit, e.g. the current master pip install pytest-cov "git+https://github.com/cta-observatory/ctapipe@$CTAPIPE_VERSION" pip install pyflakes @@ -82,7 +85,7 @@ jobs: run: | # github actions starts a new shell for each "step", so we need to # activate our env again - mamba activate ci + coverage run -m pytest -v coverage xml