From 6372d6f819b7db82f13082e3be57ce991cc1750b Mon Sep 17 00:00:00 2001 From: Roland Guichard Date: Fri, 22 Sep 2023 16:38:35 +0100 Subject: [PATCH] Initial test GH action. --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..80a110c76 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Test Qadence. + +on: + pull_request: + branches: + - main + - develop + push: + branches: + - develop + schedule: + # 03:00 every Saturday morning + - cron: '0 3 * * 6' + workflow_dispatch: {} + +concurrency: + group: ${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + build_test_pytket_ubuntu: + name: Build and test pytket (ubuntu) + needs: check_changes + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - name: Select Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: Install Hatch + run: | + pip install hatch + - name: Run tests + run: | + hatch -v run tests