forked from Qiskit/qiskit-ibm-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 1.73 KB
/
Makefile
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
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
.PHONY: lint style test mypy test1 test2 test3 runtime_integration
lint:
pylint -rn qiskit_ibm_provider test
tools/verify_headers.py qiskit_ibm_provider test
mypy:
mypy --module qiskit_ibm_provider --package test
style:
black --check qiskit_ibm_provider test setup.py docs/tutorials
unit-test:
python -m unittest discover --verbose --top-level-directory . --start-directory test/unit
unit-test-coverage:
coverage run -m unittest discover --verbose --top-level-directory . --start-directory test/unit
coverage lcov
integration-test-1:
python -m unittest -v test/integration/test_account_client.py test/integration/test_backend.py \
test/integration/test_basic_server_paths.py test/integration/test_filter_backends.py \
test/integration/test_ibm_integration.py test/integration/test_ibm_provider.py \
test/integration/test_jupyter.py test/integration/test_proxies.py
integration-test-2:
python -m unittest -v test/integration/test_ibm_job.py test/integration/test_ibm_job_attributes.py
integration-test-3:
python -m unittest -v test/integration/test_serialization.py test/integration/test_ibm_qasm_simulator.py
e2e-test:
python -m unittest discover --verbose --top-level-directory . --start-directory test/e2e
black:
black qiskit_ibm_provider test setup.py docs/tutorials