Skip to content

Commit

Permalink
Merge pull request #1132 from qiboteam/workflows-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido authored Jan 23, 2025
2 parents 577b91f + a261290 commit 2e00ff1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 44 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docs

on:
workflow_dispatch:
push:
branches: [main]
tags:
- "*"

jobs:
version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.classify.outputs.version}}

steps:
- id: classify
uses: qiboteam/workflows/actions/docs/version@v2

deploy-docs:
needs: [version]
uses: qiboteam/workflows/.github/workflows/latest-stable.yml@v2
with:
python-version: "3.11"
trigger-label: "${{needs.version.outputs.version}}"
project: qibolab
poetry-extras: --with docs --all-extras
38 changes: 0 additions & 38 deletions .github/workflows/publish.yml

This file was deleted.

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/rules-poetry.yml@v1
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
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ lint-warnings = """
--select F,E,W,C90,N,UP,BLE,FBT,B,A,C4,T10,EM,EXE,ISC,ICN,LOG,G,INP,PIE,T20,PT,Q,RSE,\
RET,SLF,SLOT,SIM,TC,INT,ARG,PTH,ERA,NPY,PERF,RUF
"""
types = "true"
docs = "make -C doc html"
docs-clean = "make -C doc clean"
test-docs = "make -C doc doctest"
Expand Down

0 comments on commit 2e00ff1

Please sign in to comment.