Add testing workflow

This commit is contained in:
Alessandro Candido
2023-02-07 09:10:09 +01:00
parent 9dc59cf14d
commit 64747045eb

21
.github/workflows/rules.yml vendored Normal file
View File

@@ -0,0 +1,21 @@
# A single CI script with github workflow
name: Tests
on:
push:
pull_request:
types: [labeled]
jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push'
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.7, 3.8, 3.9, "3.10"]
uses: qiboteam/workflows/.github/workflows/rules.yml@main
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
environment: "qibotn"
secrets: inherit