Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Jul 15, 2024
1 parent f120d1f commit f722d99
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ With the parameter `--timeout-skip-list=<SECs>`, a *skiplist* (a list of tests
For example, the following line runs the tests in `benchpress/tket_gym/construct` with a 1 hour timeout:

```bash
python -m pytest --timeout-skip-list=3600 --benchmark-min-rounds=1 benchpress/tket_gym/construct
python -m pytest --timeout-skip-list=3600 benchpress/tket_gym/construct
```

This will create a `skipfile.txt` file.
Expand Down
5 changes: 4 additions & 1 deletion benchpress/ai_transpiler_gym/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@

def pytest_report_header(config):
"""Add some info about packages and backend to the pytest CLI header"""
return [
ret = [
f"qiskit: {qiskit.__version__}",
f"qiskit_ibm_runtime: {qiskit_ibm_runtime.__version__}",
f"qiskit_transpiler_service: {AI_SERVICE_VERSION}",
]
if hasattr(config.known_args_namespace, 'timeout_skip_list'):
ret.append(f"timeout_skip_list: {config.known_args_namespace.timeout_skip_list}")
return ret


def pytest_benchmark_update_json(config, benchmarks, output_json):
Expand Down
5 changes: 4 additions & 1 deletion benchpress/bqskit_gym/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

def pytest_report_header(config):
"""Add some info about packages and backend to the pytest CLI header"""
return [
ret = [
f"bqskit: {bqskit.__version__}",
]
if hasattr(config.known_args_namespace, 'timeout_skip_list'):
ret.append(f"timeout_skip_list: {config.known_args_namespace.timeout_skip_list}")
return ret


def pytest_benchmark_update_json(config, benchmarks, output_json):
Expand Down
5 changes: 4 additions & 1 deletion benchpress/braket_gym/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

def pytest_report_header(config):
"""Add some info about packages and backend to the pytest CLI header"""
return [
ret = [
f"braket: {braket_sdk.__version__}",
]
if hasattr(config.known_args_namespace, 'timeout_skip_list'):
ret.append(f"timeout_skip_list: {config.known_args_namespace.timeout_skip_list}")
return ret


def pytest_benchmark_update_json(config, benchmarks, output_json):
Expand Down
5 changes: 4 additions & 1 deletion benchpress/cirq_gym/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

def pytest_report_header(config):
"""Add some info about packages and backend to the pytest CLI header"""
return [
ret = [
f"cirq: {cirq.__version__}",
]
if hasattr(config.known_args_namespace, 'timeout_skip_list'):
ret.append(f"timeout_skip_list: {config.known_args_namespace.timeout_skip_list}")
return ret


def pytest_benchmark_update_json(config, benchmarks, output_json):
Expand Down
5 changes: 4 additions & 1 deletion benchpress/qiskit_gym/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@

def pytest_report_header(config):
"""Add some info about packages and backend to the pytest CLI header"""
return [
ret = [
f"qiskit: {qiskit.__version__}",
f"qiskit_ibm_runtime: {qiskit_ibm_runtime.__version__}",
]
if hasattr(config.known_args_namespace, 'timeout_skip_list'):
ret.append(f"timeout_skip_list: {config.known_args_namespace.timeout_skip_list}")
return ret


def pytest_benchmark_update_json(config, benchmarks, output_json):
Expand Down
1 change: 0 additions & 1 deletion skipfile.txt

This file was deleted.

0 comments on commit f722d99

Please sign in to comment.