Skip to content

Commit

Permalink
check if coverage is set to github
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Jun 21, 2024
1 parent a10d9db commit e8d7205
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ jobs:
envs:
name: Load tox environments
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-outputs.outputs.matrix }}
steps:
- name: workflow inputs
run: echo "${{ toJSON(inputs) }}"
Expand All @@ -144,6 +142,8 @@ jobs:
--runs-on "${{ inputs.runs-on }}" --default-python "${{ inputs.default_python }}" \
--timeout-minutes "${{ inputs.timeout-minutes }}"
shell: sh
outputs:
matrix: ${{ steps.set-outputs.outputs.matrix }}

tox:
name: ${{ matrix.name }}
Expand Down Expand Up @@ -246,8 +246,10 @@ jobs:
coverage:
name: test coverage
needs:
- envs
- tox
if: inputs.coverage == 'github'
if: >
contains('\"coverage\": \"github\"', needs.envs.outputs.matrix)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e8d7205

Please sign in to comment.