Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/run-workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +49,7 @@ jobs:
fi

- name: List Xircuits
run: xircuits list
run: xircuits list

- name: Clone Repository
run: |
Expand All @@ -55,7 +69,7 @@ jobs:
else
echo "requirements.txt not found."
fi

- name: Test .xircuits Workflows
run: |
export PYTHONPATH="${GITHUB_WORKSPACE}:${PYTHONPATH}"
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading