diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 60726de..0bd5a8e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] workflow_dispatch: permissions: @@ -12,20 +12,25 @@ permissions: jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.10" - cache: "pip" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install .[test] - - name: Run unittest - run: | - bash tests/test.sh + - uses: actions/checkout@v4 + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: "pip" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install git+ssh://git@github.com/OpenQuantumDesign/compiler_infrastructure + pip install .[test] + - name: Test python env + run: python -c "import oqd_compiler_infrastructure" + - name: Run unittest + run: | + bash tests/test.sh diff --git a/pyproject.toml b/pyproject.toml index 8df3776..4fe4d59 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,6 @@ dependencies = [ "Cython~=3.0.10", "filelock~=3.13.4", "numpy~=1.0", - "oqd_compiler_infrastructure @ git+https://github.com/OpenQuantumDesign/compiler_infrastructure", ] [project.optional-dependencies]