-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "CI: Use the tox-verify workflow to test all envs"
- Loading branch information
Showing
1 changed file
with
15 additions
and
29 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 |
---|---|---|
|
@@ -63,36 +63,22 @@ jobs: | |
- name: Allow replication | ||
run: sleep 10s | ||
|
||
# run pre-commit tox env separately to get use of more parallel processing | ||
pre-commit: | ||
tox-verify: | ||
needs: prepare | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lfit/[email protected] | ||
with: | ||
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} | ||
delay: "0s" | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
- name: Run static analysis and format checkers | ||
run: pipx run tox -e pre-commit | ||
|
||
tox: | ||
needs: prepare | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lfit/[email protected] | ||
with: | ||
gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} | ||
delay: "0s" | ||
- uses: actions/setup-python@v4 | ||
id: setup-python | ||
with: | ||
python-version: "3.11" | ||
- name: Run tests | ||
run: >- | ||
TOX_SKIP_ENV=pre-commit pipx run tox | ||
# yamllint disable-line rule:line-length | ||
uses: lfit/releng-reusable-workflows/.github/workflows/gerrit-compose-required-tox-verify.yaml@fbf2b4bcca9a6306765f39552d8cfcd962ab6945 # v0.2.1 | ||
with: | ||
GERRIT_BRANCH: ${{ inputs.GERRIT_BRANCH }} | ||
GERRIT_CHANGE_ID: ${{ inputs.GERRIT_CHANGE_ID }} | ||
GERRIT_CHANGE_NUMBER: ${{ inputs.GERRIT_CHANGE_NUMBER }} | ||
GERRIT_CHANGE_URL: ${{ inputs.GERRIT_CHANGE_URL }} | ||
GERRIT_EVENT_TYPE: ${{ inputs.GERRIT_EVENT_TYPE }} | ||
GERRIT_PATCHSET_NUMBER: ${{ inputs.GERRIT_PATCHSET_NUMBER }} | ||
GERRIT_PATCHSET_REVISION: ${{ inputs.GERRIT_PATCHSET_REVISION }} | ||
GERRIT_PROJECT: ${{ inputs.GERRIT_PROJECT }} | ||
GERRIT_REFSPEC: ${{ inputs.GERRIT_REFSPEC }} | ||
# yamllint disable-line rule:line-length | ||
TOX_ENVS: '["ensure-documented", "jjb", "jjb-compare-xml", "license", "bashate", "pre-commit", "docs"]' | ||
|
||
vote: | ||
if: ${{ always() }} | ||
|