Skip to content

Commit

Permalink
set run-tests only if condition is true
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 18, 2023
1 parent 4300381 commit d8be7f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
steps:
- name: Check conditions
id: conditions
run: echo "run-tests=${{ github.ref == 'refs/heads/master' || (matrix.runner == 'ubuntu-20.04' && matrix.python-version == '3.8') }}" >> $GITHUB_ENV
if: ${{ github.ref == 'refs/heads/master' || (matrix.runner == 'ubuntu-20.04' && matrix.python-version == '3.8') }}
run: echo "run-tests=true" >> $GITHUB_ENV

outputs:
python-version: ${{ matrix.python-version }}
Expand Down

0 comments on commit d8be7f2

Please sign in to comment.