Skip to content

Commit

Permalink
Add action to run test (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Apr 7, 2024
1 parent 03bf108 commit 2d88264
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/actions/run-test/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: 'Run Test'
description: 'Clones and Runs a test'
inputs:
url: # id of input
description: 'repo url'
required: true
tests:
description: 'Test Names'
env:
URL: ${{ inputs.url }}
TESTS: ${{ inputs.tests }}
runs:
using: "composite"
steps:
- name: Clone IP
run: git clone ${URL}
- name: Run Test
run: |
for test in $TESTS; do
echo "Running Test $test"
done
6 changes: 6 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run Test
uses: ./.github/actions/run-test
with:
url: ${{ matrix.url }}
tests: ${{ matrix.test }}

- name: Print Matrix
run: ${{ needs.Prepare-Tests-Matrix.outputs.test }}

1 change: 1 addition & 0 deletions skeleton/skeleton_agent/skeleton_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async def run_phase(self, phase):
# TODO: Add logic to monitor the IP
# use self.vif.<signal name> for monitoring interface signals
# self.monitor_port.write(tr) # this is the port to send the transaction after sampling it
# NOTES: how to create transaction
pass


Expand Down

0 comments on commit 2d88264

Please sign in to comment.