Add testing workflow
This commit is contained in:
21
.github/workflows/rules.yml
vendored
Normal file
21
.github/workflows/rules.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user