Skip to content

Commit

Permalink
Add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Aug 23, 2024
1 parent 3622105 commit 61dc437
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/test_rapids-check-pr-job-dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,33 @@
),
1,
),
(
dedent(
"""\
jobs:
pr-builder:
needs:
- job1
- job2
if: always()
with:
job1:
job2:
"""
),
None,
dedent(
"""\
If 'pr-builder' job has an 'if' condition, it must also set the 'needs' input to '${{{{ toJSON(needs) }}}}'.
Update '{filename}' to add the following:
with:
needs: ${{{{ toJSON(needs) }}}}
"""
),
1,
),
(
dedent(
"""\
Expand Down

0 comments on commit 61dc437

Please sign in to comment.