From 197b3e6023196519392cd4e0cfd0c1c28c833641 Mon Sep 17 00:00:00 2001 From: chrisjonesbsu Date: Fri, 29 Mar 2024 10:41:43 -0600 Subject: [PATCH] create new job for testing tutorials --- .github/workflows/pytest.yml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 69396c21..6bc9292d 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -49,12 +49,31 @@ jobs: shell: bash -l {0} run: python -m pytest -rs -v --cov=./ --cov-report=xml - - name: Run pytest on tutorials - shell: bash -l {0} - run: python -m pytest -rs -v --nbmake tutorials/ - - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} file: ./coverage.xml + + test-tutorials: + if: contains(github.event.comment.body, 'run-test-tutorials') + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v2 + + - name: Build environment + uses: conda-incubator/setup-miniconda@v2 + with: + environment-file: environment-dev.yml + miniforge-variant: Mambaforge + miniforge-version: 4.9.2-4 + use-mamba: true + + - name: Install package + shell: bash -l {0} + run: pip install . + + - name: Run pytest on tutorials + shell: bash -l {0} + run: python -m pytest -rs -v --nbmake tutorials/