Skip to content

Commit 4734fa0

Browse files
christopherngutierrezjoserochhkylanerace
authored
Kerngen Tests for CI (#103)
Initial add for kerngen tests for CI Co-authored-by: Jose Rojas Chaves <jose.rojas.chaves@intel.com> Co-authored-by: Kylan Race <kylan.e.race@intel.com>
1 parent 8b2e45f commit 4734fa0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/kerngen-test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: HEC Kerngen Tools Tests
2+
on:
3+
push:
4+
branches: [main]
5+
paths:
6+
- 'p-isa_tools/kerngen/**'
7+
pull_request:
8+
branches: [main]
9+
paths:
10+
- 'p-isa_tools/kerngen/**'
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
defaults:
19+
run:
20+
working-directory: p-isa_tools/kerngen
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: '3.10'
28+
29+
- name: Install dependencies
30+
run: |
31+
pip install -r requirements.txt
32+
pip install pytest
33+
34+
- name: Check for changes in p-isa_tools/kerngen
35+
id: changes
36+
uses: dorny/paths-filter@v3
37+
with:
38+
filters: |
39+
module:
40+
- '**'
41+
42+
- name: Run unit tests
43+
if: steps.changes.outputs.module == 'true'
44+
run: pytest tests

0 commit comments

Comments
 (0)