Skip to content

Commit

Permalink
ci: Update all workflows to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jan 16, 2025
1 parent cfe59ff commit b906ed8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
deploy-docs:
needs: [evaluate-label]
uses: qiboteam/workflows/.github/workflows/deploy-ghpages-latest-stable.yml@v1
uses: qiboteam/workflows/.github/workflows/latest-stable.yml@v2
with:
python-version: '3.10'
python-version: "3.11"
package-manager: "poetry"
dependency-path: "**/poetry.lock"
trigger-label: "${{needs.evaluate-label.outputs.label}}"
project: qibolab
poetry-extras: --with docs --all-extras
5 changes: 2 additions & 3 deletions .github/workflows/rules.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# A single CI script with github workflow
name: tests

on:
Expand All @@ -13,10 +12,10 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
uses: qiboteam/workflows/.github/workflows/test.yml@analysis
uses: qiboteam/workflows/.github/workflows/test.yml@v2
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
doctests: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version != '3.12'}}
doctests: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version != '3.11'}}
poetry-extras: "--with docs,tests,analysis --all-extras"
secrets: inherit
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml → .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# A single CI script with github workflow
name: Build wheels

on:
Expand All @@ -13,10 +12,10 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@v1
uses: qiboteam/workflows/.github/workflows/wheels.yml@v2
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
publish: ${{ github.event_name == 'release' && github.event.action == 'published' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' }}
publish: ${{ github.event_name == 'release' && github.event.action == 'published' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' }}
poetry-extras: "--with docs,tests,analysis --all-extras"
secrets: inherit

0 comments on commit b906ed8

Please sign in to comment.