From d4f8d4f6c497f8e18ffe2f65c3a04e92d12fb028 Mon Sep 17 00:00:00 2001 From: Oksana Shadura Date: Tue, 13 Feb 2024 14:46:22 +0100 Subject: [PATCH] Update GH actions to run different marked functions --- .github/workflows/gh-ci.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index b0fc51d..a7b5e0f 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -122,12 +122,22 @@ jobs: exit 1 fi - - name: Test Pytest environement + - name: Test Pytest environement v0 + if: ${{ matrix.image_dir = 'coffea-basev0' }} env: tag: ${{ steps.tags.outputs.tag }} run: | docker run --rm -v ${{ github.workspace }}:/tmp/workspace ${tag} \ - sh -c "pip install -U pytest && cd tmp/workspace && pytest" + sh -c "pip install -U pytest && cd tmp/workspace && pytest -m coffeav0" + + - name: Test Pytest environement CalVer + if: ${{ matrix.image_dir != 'coffea-basev0' }} + env: + tag: ${{ steps.tags.outputs.tag }} + run: | + docker run --rm -v ${{ github.workspace }}:/tmp/workspace ${tag} \ + sh -c "pip install -U pytest && cd tmp/workspace && pytest -m coffeacalver" + - name: Build and push v0 if: ${{ matrix.image_dir != 'coffea-basev0' }}