-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[forge] Print dashboard link after running
Print the dashboard link for the run after finishing even when running locally Also move the debugging output above the summary since its very confusing to see debugging output instead of result. Also fix some string interpolation bugs :P Test Plan: run locally, see the dashboard link :D
- Loading branch information
1 parent
0db2b59
commit 86bc471
Showing
5 changed files
with
88 additions
and
63 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Run Forge Wrapper Unittests" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
GIT_SHA: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
forge-wrapper-unittests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.GIT_SHA }} | ||
# Get enough commits to compare to | ||
fetch-depth: 100 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Should run tests | ||
run: | | ||
set -x | ||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
[[ $file =~ .*testsuite/.*.py ]] && echo "::set-output name=SHOULD_RUN::true" && echo "Running unittests" | ||
done | ||
exit 0 | ||
id: should-run-tests | ||
|
||
- uses: actions/setup-python@v4 | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
|
||
- name: Install python deps | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
run: pip3 install click==8.1.3 psutil==5.9.1 | ||
|
||
- name: Run forge wrapper tests | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
run: python -m unittest testsuite/forge_test.py |
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 |
---|---|---|
|
@@ -199,37 +199,6 @@ jobs: | |
retention-days: 1 | ||
|
||
forge-unittests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.GIT_SHA }} | ||
# Get enough commits to compare to | ||
fetch-depth: 100 | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/[email protected] | ||
|
||
- name: Should run tests | ||
run: | | ||
set -x | ||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do | ||
[[ $file =~ .*testsuite/.*.py ]] && echo "::set-output name=SHOULD_RUN::true" && echo "Running unittests" | ||
done | ||
exit 0 | ||
id: should-run-tests | ||
|
||
- uses: actions/setup-python@v4 | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
|
||
- name: Install python deps | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
run: pip3 install click==8.1.3 psutil==5.9.1 | ||
|
||
- name: Run forge wrapper tests | ||
if: steps.should-run-tests.outputs.SHOULD_RUN == 'true' | ||
run: python -m unittest testsuite/forge_test.py | ||
uses: ./.github/workflows/forge-unittests.yaml | ||
with: | ||
GIT_SHA: ${{ inputs.GIT_SHA }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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