Skip to content

Commit

Permalink
Testing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Apr 4, 2024
1 parent 9da1335 commit 2c28102
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/scripts/get_test_matrix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import yaml
import json


def main():
test_set_yaml = ".github/test_set.yaml"
output_matrix = {"tests": []}
test_set_stream = open(test_set_yaml)
data = yaml.load(test_set_stream, Loader=yaml.Loader)
for item in data:
tests = item["tests"]
name = item["name"]
url = item["url"]
for test in tests:
output_matrix["tests"].append({"name": name, "url": url, "test": test})

print(json.dumps(output_matrix))
test_set_stream.close()


if __name__ == "__main__":
main()
5 changes: 5 additions & 0 deletions .github/test_set.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- name: MS_QSPI_XIP_CACHE
url: https://github.com/shalan/MS_SPI_XIP_CACHE.git
tests:
- flashReadTest
- flashResetTest
11 changes: 11 additions & 0 deletions .github/workflows/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Test IPs
on: [push]
jobs:
Prepare-Test-Matrix:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Set Test Matrix
- run: python3 ./.github/get_test_matrix.py

0 comments on commit 2c28102

Please sign in to comment.