-
Notifications
You must be signed in to change notification settings - Fork 9
59 lines (56 loc) · 1.53 KB
/
ci_tests.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
54
55
56
57
58
59
name: ci_tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
python_check:
name: unittests_check-${{ matrix.combinations.runs_on }}
runs-on: ${{ matrix.combinations.runs_on }}
strategy:
matrix:
combinations: [
{ runs_on: "ubuntu-latest", rust: "x86_64-unknown-linux-gnu" },
]
python: [
{py: '3.8', interpreter: "python3.8"},
{py: '3.9', interpreter: "python3.9"},
{py: '3.10', interpreter: "python3.10"},
{py: '3.11', interpreter: "python3.11"}
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python.py }}
- run: |
python -m pip install -r qoqo/requirements.txt
python -m pip install -r tests/python_tests/requirements.txt
python -m pytest tests/python_tests
standalone_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/[email protected]
- run: |
cd roqoqo/standalone
cd 5_Deutsch-Josza_example
cargo run
cd ..
cd 4_Half_adder_example
cargo run
cd ..
cd 1_Intro_to_roqoqo
cargo run
cd ..
cd 2_Measurement_example
cargo run
cd ..
cd 3_Teleportation_example
cargo run
cd ..