-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial add for the CI * change the cloning to be by https rather than the ssh * update CI with download docker step * disable generate html coverage file * remove merge_cov from repo and move it to the EF_UVM repo * CI add passing/failing criteria * CI remove clean all passed * CI add passing/failing criteria
- Loading branch information
1 parent
e768ecb
commit a88be1e
Showing
3 changed files
with
47 additions
and
11 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,46 @@ | ||
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: download docker | ||
run: | | ||
docker pull efabless/dv:cocotb | ||
- name: Navigate to verify/uvm-python and run tests | ||
run: | | ||
cd verify/uvm-python | ||
make run_all_tests RUN_MERGE_COVERAGE=false | ||
- name: Check for test results in run | ||
run: | | ||
cd verify/uvm-python | ||
passed_count=$(find sim/default_tag -type f -name 'passed' | wc -l) | ||
failed_count=$(find sim/default_tag -type f -name 'failed' | wc -l) | ||
unknown_count=$(find sim/default_tag -type f -name 'unknown' | wc -l) | ||
echo "Passed: $passed_count" | ||
echo "Failed: $failed_count" | ||
echo "Unknown: $unknown_count" | ||
if [ "$passed_count" -eq 0 ]; then | ||
echo "Error: No passed test results found" | ||
exit 1 | ||
elif [ "$failed_count" -ne 0 ] || [ "$unknown_count" -ne 0 ]; then | ||
echo "Error: There are failed or unknown test results" | ||
exit 1 | ||
else | ||
echo "All tests passed successfully" | ||
fi |
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
This file was deleted.
Oops, something went wrong.