--- name: all_green concurrency: group: ${{ github.head_ref }} cancel-in-progress: true on: # yamllint disable-line rule:truthy pull_request: types: - opened - reopened - labeled - unlabeled - synchronize branches: - main - 'stable-*' tags: - '*' jobs: changelog-and-linters: uses: ./.github/workflows/changelog_and_linters.yml # use the callable changelog_and_linters job to run tests sanity: uses: ./.github/workflows/sanity.yml # use the callable sanity job to run tests units: uses: ./.github/workflows/units.yml # use the callable units job to run tests all_green: if: ${{ always() }} needs: - changelog-and-linters - sanity - units runs-on: ubuntu-latest steps: - run: >- python -c "assert set([ '${{ needs.changelog-and-linters.result }}', '${{ needs.sanity.result }}', '${{ needs.units.result }}' ]) == {'success'}"