Skip to content

Commit

Permalink
Test fast on push/PR and all on schedule.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Sep 26, 2023
1 parent 15b834b commit 45487c1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
@@ -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
11 changes: 2 additions & 9 deletions .github/workflows/test.yml → .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 45487c1

Please sign in to comment.