From b2c75f51e2cc49799f024eb856fccf5439ae1a67 Mon Sep 17 00:00:00 2001 From: rabea-al Date: Mon, 14 Oct 2024 20:30:23 +0800 Subject: [PATCH 1/2] update workflow --- .github/workflows/run-workflow-tests.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-workflow-tests.yml b/.github/workflows/run-workflow-tests.yml index 334fa23..1342d9f 100644 --- a/.github/workflows/run-workflow-tests.yml +++ b/.github/workflows/run-workflow-tests.yml @@ -10,16 +10,30 @@ on: jobs: build-and-run: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] env: TEST_XIRCUITS: | examples/TFKerasTrainImageClassifier.xircuits examples/TFKerasModelPredict.xircuits - + steps: - name: Checkout Repository uses: actions/checkout@v3 - - name: Install xircuits + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Create virtual environment + run: | + python -m venv venv + echo "${{ github.workspace }}/venv/bin" >> $GITHUB_PATH + + - name: Install xircuits in virtual environment run: pip install xircuits - name: Set Environment Variables @@ -35,7 +49,7 @@ jobs: fi - name: List Xircuits - run: xircuits list + run: xircuits list - name: Clone Repository run: | @@ -55,7 +69,7 @@ jobs: else echo "requirements.txt not found." fi - + - name: Test .xircuits Workflows run: | export PYTHONPATH="${GITHUB_WORKSPACE}:${PYTHONPATH}" @@ -101,5 +115,5 @@ jobs: if: always() uses: actions/upload-artifact@v4 with: - name: ${{ env.LIBRARY_NAME }}-validation-workflow + name: ${{ env.LIBRARY_NAME }}-validation-workflow-${{ matrix.python-version }} path: ${{ github.workspace }}/workflow_logs.txt \ No newline at end of file From 504847f89687e1dfaf9cf3d1e62c94341dbc8d6f Mon Sep 17 00:00:00 2001 From: rabea-al Date: Mon, 14 Oct 2024 20:52:00 +0800 Subject: [PATCH 2/2] downgrade tensorflow-datasets for python 3.9 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 8c025fd..d0e17f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ tensorflow==2.17.0 -tensorflow-datasets==4.9.6 +tensorflow-datasets==4.9.3 numpy scikit-learn==1.5.2 opencv-python