Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Commit

Permalink
Fix syntax error on CI (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelmarques committed Apr 14, 2021
1 parent aa943ff commit f5c5489
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: hmarr/debug-action@v2
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -91,7 +92,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- run: make lint
if: ${{ !cancelled() }}
Expand All @@ -117,7 +118,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -163,7 +164,7 @@ jobs:
if: ${{ matrix.python-version < 3.8 }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Install Dependencies
run: |
Expand Down Expand Up @@ -212,7 +213,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Finance Unit Tests under Python ${{ matrix.python-version }}
uses: ./.github/actions/run-tests
Expand Down Expand Up @@ -247,7 +248,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Machine Learning Unit Tests under Python ${{ matrix.python-version }}
uses: ./.github/actions/run-tests
Expand Down Expand Up @@ -282,7 +283,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Optimization Unit Tests under Python ${{ matrix.python-version }}
uses: ./.github/actions/run-tests
Expand Down Expand Up @@ -319,7 +320,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: ./.github/actions/install-libraries
- uses: ./.github/actions/install-master-dependencies
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
- uses: ./.github/actions/install-aqua
- name: Install Dependencies
run: |
Expand All @@ -328,17 +329,17 @@ jobs:
pip install qiskit-terra[classical-function-compiler]
shell: bash
- name: Install Migration Dependencies from master
if: ${{ !startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'refs/heads/stable') }}
run: |
pip install https://github.com/Qiskit/qiskit-optimization/archive/master.zip
pip install https://github.com/Qiskit/qiskit-machine-learning/archive/master.zip
pip install https://github.com/Qiskit/qiskit-finance/archive/master.zip
pip install https://github.com/Qiskit/qiskit-nature/archive/master.zip
shell: bash
- name: Install Migration Dependencies from pypi
if: ${{ startsWith(github.ref, 'refs/heads/stable') }}
if: ${{ startsWith(github.ref, 'refs/heads/stable') || startsWith(github.base_ref, 'refs/heads/stable') }}
run: |
pint install qiskit-optimization qiskit-machine-learning qiskit-finance qiskit-nature
pip install qiskit-optimization qiskit-machine-learning qiskit-finance qiskit-nature
shell: bash
- name: Run Qiskit Migration Tutorials
env:
Expand Down

0 comments on commit f5c5489

Please sign in to comment.