From 90847291018c798ecee4c3c9a18182d12bcbb9e7 Mon Sep 17 00:00:00 2001 From: Kyle Ma Date: Mon, 16 Sep 2024 10:33:22 -0400 Subject: [PATCH] modifying actions.yml --- .github/workflows/actions.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index df90eed..e730f02 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: pull_request: push: - branches: [next] + branches: [next, qa] tags: ['v*'] jobs: @@ -14,10 +14,17 @@ jobs: run: shell: bash -l {0} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: mamba-org/setup-micromamba@v1 with: environment-file: environment.yml + cache-environment-key: ${{ runner.os }}-env-${{ hashFiles('**/environment.yml') }} + cache-downloads-key: ${{ runner.os }}-downloads-${{ hashFiles('**/environment.yml') }} + condarc: | + channels: + - conda-forge + - mcvine + - mantid - name: pre-commit run: pre-commit run --all-files - name: Install histogram @@ -25,4 +32,7 @@ jobs: - name: Run tests run: xvfb-run --server-args="-screen 0 1920x1080x24" -a python -m pytest --cov=src --cov-report=xml --cov-report=term - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true