From d38045dfc51ffa4ef2f1fc134636c8fb1c73d624 Mon Sep 17 00:00:00 2001 From: Stefania Pedrazzi Date: Fri, 18 Jun 2021 13:52:34 +0200 Subject: [PATCH] Use different labels for testing sources and functionality (#78) --- .github/workflows/tests_sources.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests_sources.yml b/.github/workflows/tests_sources.yml index e9c45d4d0f..82f9548dfb 100644 --- a/.github/workflows/tests_sources.yml +++ b/.github/workflows/tests_sources.yml @@ -10,7 +10,7 @@ defaults: jobs: cleanup-runs: - if: ${{ contains(github.event.pull_request.labels.*.name, 'test') }} + if: ${{ contains(github.event.pull_request.labels.*.name, 'test sources') || contains(github.event.pull_request.labels.*.name, 'test tools') }} runs-on: ubuntu-latest steps: - uses: rokroskar/workflow-run-cleanup-action@master @@ -18,7 +18,7 @@ jobs: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" test-sources: needs: cleanup-runs - if: ${{ contains(github.event.pull_request.labels.*.name, 'test') }} + if: ${{ contains(github.event.pull_request.labels.*.name, 'test sources') }} strategy: matrix: os: [ubuntu-18.04, ubuntu-20.04, macos-10.15] @@ -46,7 +46,7 @@ jobs: pip install -r tests/requirements.txt python -m unittest discover -s tests - name: Test API - if: matrix.os == 'ubuntu-20.04' + if: ${{ matrix.os == 'ubuntu-20.04' && contains(github.event.pull_request.labels.*.name, 'test tools') }} run: | ${{ matrix.DEPENDENCIES_INSTALLATION }} export OPENDR_HOME=$PWD