Skip to content

Commit

Permalink
Fix build CI
Browse files Browse the repository at this point in the history
  - conditions on pytest-changes
  - conditions of the "commons" job
  • Loading branch information
delatrie committed Mar 12, 2024
1 parent bb77acf commit bef0e72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
commons:
name: Build commons
runs-on: ubuntu-latest
needs: [pytest-changes, other-changes]
if: ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -82,7 +84,7 @@ jobs:
name: Static check
runs-on: ubuntu-latest
needs: [commons, pytest-changes, other-changes]
if: ${{ needs.pytest-changes.outputs.changed || needs.other-changes.outputs.packages != '[]' }}
if: ${{ needs.pytest-changes.outputs.changed == 'true' || needs.other-changes.outputs.packages != '[]' }}
steps:
- uses: actions/checkout@v4

Expand All @@ -101,7 +103,7 @@ jobs:
name: Test allure-pytest
runs-on: ubuntu-latest
needs: [commons, pytest-changes]
if: ${{ needs.pytest-changes.outputs.changed }}
if: ${{ needs.pytest-changes.outputs.changed == 'true' }}
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
Expand Down

0 comments on commit bef0e72

Please sign in to comment.