-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: RELENG-4563 Signed-off-by: Andrew Grimberg <[email protected]> Change-Id: I6410121b35edf484a476ae0438c86fc8fbca2d28
- Loading branch information
Showing
1 changed file
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,10 +47,8 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
prepare: | ||
clear-vote: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} | ||
steps: | ||
- name: Clear votes | ||
uses: lfit/[email protected] | ||
|
@@ -62,6 +60,14 @@ jobs: | |
gerrit-change-number: ${{ inputs.GERRIT_CHANGE_NUMBER }} | ||
gerrit-patchset-number: ${{ inputs.GERRIT_PATCHSET_NUMBER }} | ||
vote-type: clear | ||
|
||
|
||
prepare: | ||
needs: clear-vote | ||
runs-on: ubuntu-latest | ||
outputs: | ||
wheel-distribution: ${{ steps.wheel-distribution.outputs.path }} | ||
steps: | ||
- name: Checkout change | ||
uses: lfit/[email protected] | ||
with: | ||
|
@@ -70,8 +76,6 @@ jobs: | |
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- name: Run static analysis and format checkers | ||
run: pipx run pre-commit run --all-files --show-diff-on-failure | ||
- name: Build package distribution files | ||
run: >- | ||
pipx run tox -e clean,build | ||
|
@@ -87,6 +91,20 @@ jobs: | |
path: dist/ | ||
retention-days: 1 | ||
|
||
pre-commit: | ||
needs: clear-vote | ||
runs-on: ubuntu-latest | ||
- name: Checkout change | ||
uses: lfit/[email protected] | ||
with: | ||
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} | ||
- name: Configure Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.7' | ||
- name: Run static analysis and format checkers | ||
run: pipx run pre-commit run --all-files --show-diff-on-failure | ||
|
||
test: | ||
needs: prepare | ||
runs-on: ubuntu-latest | ||
|
@@ -119,8 +137,9 @@ jobs: | |
tox --installpkg '${{ needs.prepare.outputs.wheel-distribution }}' | ||
-- -rFEx --durations 10 --color yes # pytest args | ||
docs: | ||
needs: prepare | ||
needs: clear-vote | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout change | ||
|
@@ -136,11 +155,50 @@ jobs: | |
python-version: "3.7" | ||
- name: Run docs tests | ||
run: >- | ||
pipx run tox -e docs,docs-linkcheck,license | ||
pipx run tox -e docs | ||
docs-linkcheck: | ||
needs: clear-vote | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout change | ||
uses: lfit/[email protected] | ||
with: | ||
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} | ||
delay: "0s" | ||
fetch-depth: "0" | ||
- name: Configure Python | ||
uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: "3.7" | ||
- name: Run docs-linkcheck tests | ||
run: >- | ||
pipx run tox -e docs-linkcheck | ||
license: | ||
needs: clear-vote | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout change | ||
uses: lfit/[email protected] | ||
with: | ||
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} | ||
delay: "0s" | ||
fetch-depth: "0" | ||
- name: Configure Python | ||
uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: "3.7" | ||
- name: Run license tests | ||
run: >- | ||
pipx run tox -e license | ||
vote: | ||
if: ${{ always() }} | ||
needs: [prepare, test, docs] | ||
needs: [prepare, pre-commit, test, docs, docs-linkcheck, license] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get workflow conclusion | ||
|