Skip to content

Commit

Permalink
Fixed github action for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
yhteoh committed Oct 22, 2024
1 parent 4c7f123 commit 5d18de3
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ permissions:
contents: read

jobs:
build:
strategy:
fail-fast: false
matrix:
version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os:
- ubuntu-latest
- windows-latest
arch:
- x64
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Python
uses: actions/setup-python@v4
with:
# python-version: "3.10"
python-version: ${{ matrix.version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+ssh://[email protected]/OpenQuantumDesign/compiler_infrastructure
pip install .[test]
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV
- name: Run unittest
run: |
bash tests/test.sh
build:
strategy:
fail-fast: false
matrix:
version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
os:
- ubuntu-latest
- windows-latest
arch:
- x64
name: Python ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Python
uses: actions/setup-python@v4
with:
# python-version: "3.10"
python-version: ${{ matrix.version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+ssh://[email protected]/OpenQuantumDesign/compiler_infrastructure
pip install .[test]
- name: Set PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV
- name: Run unittest
run: |
bash tests/test.sh

0 comments on commit 5d18de3

Please sign in to comment.