-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e768ecb
commit ac20324
Showing
1 changed file
with
33 additions
and
0 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,33 @@ | ||
name: Run UVM all tests | ||
|
||
on: | ||
push: # This now triggers on pushes to any branch | ||
pull_request: # This now triggers on pull requests to any branch | ||
|
||
jobs: | ||
test_and_clean: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Navigate to verify/uvm-python and run tests | ||
run: | | ||
cd verify/uvm-python | ||
make run_all_tests | ||
- name: Clean passed runs | ||
run: make clean_passed_dirs | ||
|
||
- name: Check for directories under sim | ||
run: | | ||
if [ "$(ls -A sim/)" ]; then | ||
echo "Error: runs exist under sim after cleanup" | ||
exit 1 | ||
else | ||
echo "Cleanup successful, no directories under sim" | ||
fi |