Skip to content

Commit

Permalink
initial add for the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Feb 20, 2024
1 parent e768ecb commit ac20324
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/uvm_ci.yaml
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

0 comments on commit ac20324

Please sign in to comment.