diff --git a/.github/workflows/uvm_ci.yaml b/.github/workflows/uvm_ci.yaml new file mode 100644 index 0000000..cb6187c --- /dev/null +++ b/.github/workflows/uvm_ci.yaml @@ -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 diff --git a/verify/uvm-python/Makefile b/verify/uvm-python/Makefile index 49a5014..a28dd4d 100644 --- a/verify/uvm-python/Makefile +++ b/verify/uvm-python/Makefile @@ -22,7 +22,7 @@ REPO_DIR := EF_UVM clone_ef_uvm := $(shell if [ ! -d "$(REPO_DIR)" ]; then \ echo "Cloning the EF_UVM repository..."; \ - git clone git@github.com:M0stafaRady/EF_UVM.git; \ + git clone https://github.com/M0stafaRady/EF_UVM.git; \ fi;) diff --git a/verify/uvm-python/merge_cov.py b/verify/uvm-python/merge_cov.py deleted file mode 100644 index 6b30eb0..0000000 --- a/verify/uvm-python/merge_cov.py +++ /dev/null @@ -1,10 +0,0 @@ - -from caravel_cocotb.scripts.merge_coverage import merge_fun_cov -import argparse - - -if __name__ == "__main__": - parser = argparse.ArgumentParser(description='Call a function with a path.') - parser.add_argument('path', type=str, help='The path to use for the function.') - args = parser.parse_args() - merge_fun_cov(args.path)