Skip to content

Commit 7902b65

Browse files
committed
Add testing matrix for samples
1 parent 8f09b5a commit 7902b65

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/validate.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,28 @@ jobs:
3131
flake8 . --count --show-source --statistics
3232
- name: Run tests
3333
run: |
34-
pytest --ignore=samples-v2
34+
pytest --ignore=samples-v2
35+
36+
test-samples:
37+
strategy:
38+
matrix:
39+
app_name: [blueprint, fan_in_fan_out, function_chaining]
40+
runs-on: ubuntu-latest
41+
defaults:
42+
run:
43+
working-directory: ./samples-v2/${{ matrix.app_name }}
44+
steps:
45+
- name: Checkout repository
46+
uses: actions/checkout@v2
47+
48+
- name: Set up Python
49+
uses: actions/setup-python@v2
50+
with:
51+
python-version: 3.9
52+
- name: Install dependencies
53+
run: |
54+
python -m pip install --upgrade pip
55+
pip install -r requirements.txt
56+
- name: Run tests
57+
run: |
58+
pytest

0 commit comments

Comments
 (0)