Skip to content

Commit fff9c7a

Browse files
authored
Merge pull request #2 from rabea-al/rabea/ubdate-workflow
update workflow
2 parents be3d9b8 + 504847f commit fff9c7a

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/run-workflow-tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,30 @@ on:
1010
jobs:
1111
build-and-run:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.9", "3.10", "3.11"]
1317
env:
1418
TEST_XIRCUITS: |
1519
examples/TFKerasTrainImageClassifier.xircuits
1620
examples/TFKerasModelPredict.xircuits
17-
21+
1822
steps:
1923
- name: Checkout Repository
2024
uses: actions/checkout@v3
2125

22-
- name: Install xircuits
26+
- name: Set up Python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v4
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Create virtual environment
32+
run: |
33+
python -m venv venv
34+
echo "${{ github.workspace }}/venv/bin" >> $GITHUB_PATH
35+
36+
- name: Install xircuits in virtual environment
2337
run: pip install xircuits
2438

2539
- name: Set Environment Variables
@@ -35,7 +49,7 @@ jobs:
3549
fi
3650
3751
- name: List Xircuits
38-
run: xircuits list
52+
run: xircuits list
3953

4054
- name: Clone Repository
4155
run: |
@@ -55,7 +69,7 @@ jobs:
5569
else
5670
echo "requirements.txt not found."
5771
fi
58-
72+
5973
- name: Test .xircuits Workflows
6074
run: |
6175
export PYTHONPATH="${GITHUB_WORKSPACE}:${PYTHONPATH}"
@@ -101,5 +115,5 @@ jobs:
101115
if: always()
102116
uses: actions/upload-artifact@v4
103117
with:
104-
name: ${{ env.LIBRARY_NAME }}-validation-workflow
118+
name: ${{ env.LIBRARY_NAME }}-validation-workflow-${{ matrix.python-version }}
105119
path: ${{ github.workspace }}/workflow_logs.txt

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
tensorflow==2.17.0
2-
tensorflow-datasets==4.9.6
2+
tensorflow-datasets==4.9.3
33
numpy
44
scikit-learn==1.5.2
55
opencv-python

0 commit comments

Comments
 (0)