diff --git a/.github/workflows/test_all.yml b/.github/workflows/test_all.yml new file mode 100644 index 00000000..8feec921 --- /dev/null +++ b/.github/workflows/test_all.yml @@ -0,0 +1,28 @@ +name: Run all Qadence tests on schedule. + +on: + 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: + test_qadence_ubuntu: + name: Test Qadence (ubuntu) + 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 test diff --git a/.github/workflows/test.yml b/.github/workflows/test_fast.yml similarity index 78% rename from .github/workflows/test.yml rename to .github/workflows/test_fast.yml index 6c73590b..ba2763b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test_fast.yml @@ -1,16 +1,9 @@ -name: Test Qadence. +name: Run Qadence fast tests. -on: +on: [push] pull_request: branches: - main - - develop - push: - branches: - - develop - schedule: - # 03:00 every Saturday morning - - cron: '0 3 * * 6' workflow_dispatch: {} concurrency: