-
Notifications
You must be signed in to change notification settings - Fork 21
53 lines (46 loc) · 1.12 KB
/
test_examples_notebooks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<<<<<<< HEAD:.github/workflows/test_examples_notebooks.yml
name: Run Qadence example and notebook tests.
=======
name: Tests
>>>>>>> main:.github/workflows/test_examples.yml
on:
push:
branches:
- main
pull_request:
branches:
- main
<<<<<<< HEAD:.github/workflows/test_examples_notebooks.yml
paths:
- examples
- notebooks
schedule:
# 03:00 every Saturday morning
- cron: '0 3 * * 6'
=======
>>>>>>> main:.github/workflows/test_examples.yml
workflow_dispatch: {}
concurrency:
group: examples-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test_qadence_ubuntu:
name: Examples (ubuntu)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install graphviz
run: sudo apt-get install -y graphviz
- name: Select Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Hatch
run: |
pip install hatch
- name: Run example tests
run: |
hatch -v run test-examples
- name: Run notebooks tests
run: |
hatch -v run test-notebooks