Skip to content

Commit

Permalink
Use different labels for testing sources and functionality (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefaniapedrazzi committed Jun 18, 2021
1 parent 4b0dcb5 commit d38045d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ 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
env:
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]
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d38045d

Please sign in to comment.