Skip to content

Commit

Permalink
Fix CI build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Takishima authored Jul 18, 2023
1 parent 82aa52f commit 45b37c3
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ jobs:

steps:
- name: Install Git
if: matrix.clang == 10
run: |
apt-get update && apt-get install -y git --no-install-recommends
run: apt-get update && apt-get install -y git --no-install-recommends

# Work-around for https://github.com/actions/runner-images/issues/6775
- name: Change Owner of Container Working Directory
Expand All @@ -138,27 +136,34 @@ jobs:
- name: Prepare env
run: >
apt-get update && apt-get install -y python3-dev python3-pip python3-setuptools python3-wheel
python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
apt-get update && apt-get install -y python3-dev python3-full python3-pip python3-setuptools
python3-wheel python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
python3-pytest python3-pytest-cov python3-flaky
libomp-dev
--no-install-recommends
- name: Prepare Python env
run: |
python3 -m venv venv
. venv/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
cat requirements.txt
python3 -m pip install -r requirements.txt --prefer-binary
- name: Upgrade pybind11 and flaky
run: python3 -m pip install --upgrade pybind11 flaky --prefer-binary
run: |
. venv/bin/activate
python3 -m pip install --upgrade pybind11 flaky --prefer-binary
- name: Build and install package
run: python3 -m pip install -ve .[azure-quantum,braket,test]
run: |
. venv/bin/activate
python3 -m pip install -ve .[azure-quantum,braket,test]
- name: Pytest
run: |
. venv/bin/activate
echo 'backend: Agg' > matplotlibrc
python3 -m pytest -p no:warnings
Expand Down Expand Up @@ -190,26 +195,33 @@ jobs:
- name: Prepare env
run: >
apt-get update && apt-get install -y python3-dev python3-pip python3-setuptools python3-wheel
python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
apt-get update && apt-get install -y python3-dev python3-full python3-pip python3-setuptools
python3-wheel python3-numpy python3-scipy python3-matplotlib python3-requests python3-networkx
python3-pytest python3-pytest-cov python3-flaky
--no-install-recommends
- name: Prepare Python env
run: |
python3 -m venv venv
. venv/bin/activate
python3 -m pip install -U pip setuptools wheel
python3 setup.py gen_reqfile --include-extras=test,azure-quantum,braket
cat requirements.txt
python3 -m pip install -r requirements.txt --prefer-binary
- name: Upgrade pybind11 and flaky
run: python3 -m pip install --upgrade pybind11 flaky --prefer-binary
run: |
. venv/bin/activate
python3 -m pip install --upgrade pybind11 flaky --prefer-binary
- name: Build and install package
run: python3 -m pip install -ve .[azure-quantum,braket,test]
run: |
. venv/bin/activate
python3 -m pip install -ve .[azure-quantum,braket,test]
- name: Pytest
run: |
. venv/bin/activate
echo 'backend: Agg' > matplotlibrc
python3 -m pytest -p no:warnings
Expand Down

0 comments on commit 45b37c3

Please sign in to comment.