File tree Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Expand file tree Collapse file tree 2 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 1010jobs :
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
3549 fi
3650
3751 - name : List Xircuits
38- run : xircuits list
52+ run : xircuits list
3953
4054 - name : Clone Repository
4155 run : |
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
Original file line number Diff line number Diff line change 11tensorflow == 2.17.0
2- tensorflow-datasets == 4.9.6
2+ tensorflow-datasets == 4.9.3
33numpy
44scikit-learn == 1.5.2
55opencv-python
You can’t perform that action at this time.
0 commit comments