Skip to content

Commit

Permalink
Merge branch '0.1' into platform_readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Oct 30, 2024
2 parents a186562 + 94ca594 commit be32893
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 332 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
platform: ${{ fromJSON(needs.prepare.outputs.matrix) }}
version: ["main"]
version: ["dev"]
fail-fast: false
runs-on: self-hosted
steps:
Expand All @@ -57,9 +57,10 @@ jobs:
run: |
python -m venv testenv
source testenv/bin/activate
python -m pip install qibolab qibocal
- name: Install qibo main
if: ${{ matrix.version == 'main' }}
python -m pip install qibocal
python -m pip install 'qibolab[qblox,zh,qm,rfsoc,los]<0.2.0'
- name: Install qibo development versions
if: ${{ matrix.version == 'dev' }}
run: |
python -m venv testenv
source testenv/bin/activate
Expand All @@ -68,6 +69,7 @@ jobs:
cd qibocal
poetry install --no-interaction
cd ../qibolab
git checkout 0.1
poetry install --no-interaction --all-extras
cd ..
- name: Execute on ${{ matrix.platform }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
tests:
strategy:
matrix:
version: ["main", "stable"]
version: ["stable", "dev"]
runs-on: ubuntu-22.04
defaults:
run:
Expand All @@ -15,25 +15,26 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install qibolab stable
- name: Install latest qibolab 0.1 stable version
if: ${{ matrix.version == 'stable' }}
run: |
python -m venv testenv
source testenv/bin/activate
pip install pytest
pip install qibolab[qblox,zh,qm,rfsoc]
pip install 'qibolab[qblox,zh,qm,rfsoc,los]<0.2.0'
- name: Install and configure poetry
if: ${{ matrix.version == 'main' }}
if: ${{ matrix.version == 'dev' }}
uses: snok/install-poetry@v1
with:
virtualenvs-create: false
- name: Install qibolab main
if: ${{ matrix.version == 'main' }}
- name: Install latest qibolab 0.1 development version
if: ${{ matrix.version == 'dev' }}
run: |
python -m venv testenv
source testenv/bin/activate
git clone https://github.com/qiboteam/qibolab
cd qibolab
git checkout 0.1
poetry install --no-interaction --with tests --all-extras
- name: Test platforms
run: |
Expand Down
Loading

0 comments on commit be32893

Please sign in to comment.