fixing bugs
This commit is contained in:
28
.github/workflows/rules.yml
vendored
28
.github/workflows/rules.yml
vendored
@@ -22,23 +22,19 @@ jobs:
|
|||||||
outputs:
|
outputs:
|
||||||
cuda_on: ${{ steps.step1.outputs.test }}
|
cuda_on: ${{ steps.step1.outputs.test }}
|
||||||
git_event: ${{ steps.step2.outputs.test }}
|
git_event: ${{ steps.step2.outputs.test }}
|
||||||
|
test_gpu: ${{ fromJSON(steps.step1.outputs.test) && fromJSON(steps.step2.outputs.test) }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
# job to build
|
# job to build
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
python-version: [3.8, 3.9, "3.10", "3.11"]
|
|
||||||
needs: check
|
needs: check
|
||||||
steps:
|
if: ${{fromJSON(needs.check.outputs.test_gpu)}}
|
||||||
- env:
|
strategy:
|
||||||
CUDA_ON: ${{needs.check.outputs.cuda_on}}
|
matrix:
|
||||||
GIT_EVENT: ${{needs.check.outputs.git_event}}
|
os: [ubuntu-latest]
|
||||||
if: ${{ fromJSON(env.CUDA_ON) && fromJSON(env.GIT_EVENT)}}
|
python-version: [3.8, 3.9, "3.10", "3.11"]
|
||||||
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
|
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
poetry-extras: "--with analysis,tests"
|
poetry-extras: "--with analysis,tests"
|
||||||
#secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
Reference in New Issue
Block a user