Skip to content

automating the docs #269

automating the docs

automating the docs #269

Workflow file for this run

# A single CI script with github workflow
name: Tests
env:
CUDA_PATH:
on:
workflow_dispatch:
push:
pull_request:
types: [labeled]
jobs:
check:
# job to check cuda availability for local gpu host runners
runs-on: ubuntu-latest
steps:
- id: step1
run: echo "test=${{ env.CUDA_PATH != ''}}" >> "$GITHUB_OUTPUT"
- id: step2
run: echo "test=${{ contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push' }}" >> "$GITHUB_OUTPUT"
outputs:
cuda_avail: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}
build:
# job to build
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8, 3.9, "3.10", "3.11"]
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
poetry-extras: "--with docs"
secrets: inherit
#local_build
# job to build
#needs: check
#if: ${{fromJSON(needs.check.outputs.cuda_avail)}}
#strategy:
#matrix:
#os: [ubuntu-latest]
#python-version: [3.8, 3.9, "3.10", "3.11"]
#uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
#with:
#os: ${{ matrix.os }}
#python-version: ${{ matrix.python-version }}
#poetry-extras: "--with analysis,tests, docs"
#secrets: inherit