File tree 7 files changed +90
-26
lines changed
7 files changed +90
-26
lines changed Original file line number Diff line number Diff line change
1
+ # Runs slow tests every night
2
+ name : nightly tests
3
+
4
+ on :
5
+ schedule :
6
+ - cron : " 21 2 * * *"
7
+
8
+ jobs :
9
+ tests :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - uses : actions/setup-python@v2
14
+ with :
15
+ python-version : 3.12
16
+
17
+ - name : Upgrade python environment
18
+ run : python -m pip install --upgrade virtualenv setuptools pip
19
+
20
+ - name : Upgrade test dependencies
21
+ run : python -m pip install psutil pytest 'hypothesis[zoneinfo]' qiskit
22
+
23
+ - name : Install BQSKit
24
+ env :
25
+ SYSTEM_VERSION_COMPAT : 0
26
+ run : pip install .
27
+
28
+ - name : Run tests
29
+ env :
30
+ NUMBER_RANDOM_CIRCUITS : 100
31
+ run : pytest
Original file line number Diff line number Diff line change 9
9
pre-commit :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - uses : actions/checkout@v4
13
13
- uses : actions/setup-python@v4
14
14
with :
15
15
python-version : ' 3.11'
Original file line number Diff line number Diff line change
1
+ name : Publish Release
2
+ on :
3
+ release :
4
+
5
+ jobs :
6
+ build :
7
+ name : Build distribution
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - uses : actions/setup-python@v4
13
+ with :
14
+ python-version : ' 3.11'
15
+
16
+ - name : Install build tool
17
+ run : python -m pip install build --user
18
+
19
+ - name : Build distribution packages
20
+ run : python -m build
21
+
22
+ - name : Store the distribution packages
23
+ uses : actions/upload-artifact@v3
24
+ with :
25
+ name : python-package-distributions
26
+ path : dist/
27
+
28
+ publish-to-pypi :
29
+ name : Upload release to PyPI
30
+
31
+ needs :
32
+ - build
33
+
34
+ runs-on : ubuntu-latest
35
+ environment :
36
+ name : release
37
+ url : https://pypi.org/p/bqskit
38
+
39
+ permissions :
40
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
41
+
42
+ steps :
43
+ - name : Download all the dists
44
+ uses : actions/download-artifact@v3
45
+ with :
46
+ name : python-package-distributions
47
+ path : dist/
48
+
49
+ - name : Publish package distributions to PyPI
50
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change @@ -15,25 +15,23 @@ jobs:
15
15
16
16
runs-on : ${{ matrix.os }}
17
17
steps :
18
- - uses : actions/checkout@v2
19
- - uses : actions/setup-python@v2
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-python@v4
20
20
with :
21
21
python-version : ${{ matrix.python-version }}
22
22
23
23
- name : Upgrade python environment
24
24
run : python -m pip install --upgrade virtualenv setuptools pip
25
25
26
26
- name : Upgrade test dependencies
27
- run : python -m pip install psutil pytest 'hypothesis[zoneinfo]'
28
-
29
- - name : Upgrade optional test dependencies
30
- if : matrix.python-version != '3.12'
31
- run : python -m pip install qiskit
27
+ run : python -m pip install psutil pytest 'hypothesis[zoneinfo]' qiskit
32
28
33
29
- name : Install BQSKit
34
30
env :
35
31
SYSTEM_VERSION_COMPAT : 0
36
- NUMBER_RANDOM_CIRCUITS : 100
37
32
run : pip install .
33
+
38
34
- name : Run tests
39
- run : pytest
35
+ env :
36
+ NUMBER_RANDOM_CIRCUITS : 100
37
+ run : pytest --ignore=tests/compiler/compile --ignore=tests/passes/partitioning/test_parts.py --ignore=tests/passes/synthesis/test_qfast.py
Original file line number Diff line number Diff line change 3
3
4
4
from bqskit .passes .processing .exhaustive import ExhaustiveGateRemovalPass
5
5
from bqskit .passes .processing .iterative import IterativeScanningGateRemovalPass
6
- from bqskit .passes .processing .rebase import Rebase2QuditGatePass # TODO: Remove
7
6
from bqskit .passes .processing .scan import ScanningGateRemovalPass
8
7
from bqskit .passes .processing .substitute import SubstitutePass
9
8
12
11
'IterativeScanningGateRemovalPass' ,
13
12
'ScanningGateRemovalPass' ,
14
13
'SubstitutePass' ,
15
- 'Rebase2QuditGatePass' ,
16
14
]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 67
67
packages = find_packages (exclude = ['examples*' , 'test*' ]),
68
68
install_requires = [
69
69
'bqskitrs>=0.4.1' ,
70
- 'lark-parser ' ,
70
+ 'lark' ,
71
71
'numpy>=1.22.0' ,
72
72
'scipy>=1.8.0' ,
73
73
'typing-extensions>=4.0.0' ,
You can’t perform that action at this time.
0 commit comments