diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e073622a9f..7f09afd1cd 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -34,6 +34,11 @@ jobs: - runner: "ubuntu-20.04" python-version: "3.8" + 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 + outputs: python-version: ${{ matrix.python-version }} runner: ${{ matrix.runner }}