Test fast on push/PR and all on schedule. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Qadence fast tests. | ||
on: [push] | ||
pull_request: | ||
branches: | ||
- main | ||
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 -m "not slow" |