👷 Add alls-green to CI (#759)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sebastián Ramírez · committed by GitHub · parent 7036fd0 · Browse files · 1 file·+24 added−5 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+24 added−5 removed
- other:+24 added−5 removed
Provenance
- Commit
7adfb68- Tree
f005387- Author
Sebastián Ramírez <tiangolo@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
7036fd0
1 file changed+24 added−5 removed
modified:.github/workflows/test.yml+24 added-5 removed
11 unmodified lines12131415161617181920212210 unmodified lines333435363537383938404142434445444546474849505152535455565721 unmodified lines798081828384858687888990919293949596979811 unmodified lines runs-on: ubuntu-20.04 strategy: matrix: python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] click-7: [true, false] click-version: - click-7 - click-8 fail-fast: false
steps: - uses: actions/checkout@v310 unmodified lines if: ${{ matrix.python-version == '3.6' }} # This doesn't install the editable install, so coverage doesn't get subprocesses run: python -m pip install ".[test]" - name: Install Click 7 if: matrix.click-7 if: matrix.click-version == 'click-7' run: pip install "click<8.0.0" - name: Lint if: ${{ matrix.python-version != '3.6' && matrix.click-7 == false }} if: ${{ matrix.python-version != '3.6' && matrix.click-version == 'click-8' }} run: bash scripts/lint.sh - run: mkdir coverage - name: Test run: bash scripts/test.sh env: COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-click-7-${{ matrix.click-7 }} CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-click-7-${{ matrix.click-7 }} COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.click-version }} CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}-${{ matrix.click-version }} - name: Store coverage files uses: actions/upload-artifact@v3 with: name: coverage path: coverage
coverage-combine: needs: [test] runs-on: ubuntu-latest
21 unmodified lines uses: actions/upload-artifact@v3 with: name: coverage-html path: htmlcov
# https://github.com/marketplace/actions/alls-green#why check: # This job does nothing and is only used for the branch protection if: always() needs: - coverage-combine runs-on: ubuntu-latest steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - name: Decide whether the needed jobs succeeded or failed uses: re-actors/alls-green@release/v1 with: jobs: ${{ toJSON(needs) }}