From 64747045eb6e2d6fe8881820fe61fc8aa02577d9 Mon Sep 17 00:00:00 2001 From: Alessandro Candido Date: Tue, 7 Feb 2023 09:10:09 +0100 Subject: [PATCH] Add testing workflow --- .github/workflows/rules.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/rules.yml diff --git a/.github/workflows/rules.yml b/.github/workflows/rules.yml new file mode 100644 index 0000000..e087400 --- /dev/null +++ b/.github/workflows/rules.yml @@ -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