Skip to content

Commit

Permalink
use venv and bump actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MFA-X-AI committed Oct 14, 2024
1 parent cc8b58d commit e79e2d8
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/run-workflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,28 @@ 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: |
example.xircuits
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
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
- name: Install xircuits in virtual environment
run: pip install xircuits

- name: Set Environment Variables
Expand Down Expand Up @@ -100,5 +113,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

0 comments on commit e79e2d8

Please sign in to comment.