Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update tests #31

Merged
merged 5 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox juliacall
pip install -e . # to put juliapkg.json in sys.path
python -c 'import juliacall' # force install of all deps
pip install tox
- name: Run Tests
run: |
tox -e unit-tests
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ test=pytest
[tool:pytest]
xfail_strict = true
addopts =
--verbose -n auto
--verbose -n auto --durations=0 --durations-min=1 --dist worksteal
testpaths = test/unit_tests

[flake8]
Expand Down
1 change: 0 additions & 1 deletion src/braket/simulator_v2/julia_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def setup_julia():
jl.BraketSimulator.simulate._jl_call_nogil(dm, irs, input_dict, 0)
# don't waste time looking for packages
# which should already be present after this
os.environ["PYTHON_JULIAPKG_OFFLINE"] = "no"
del sv
del dm
del stock_oq3
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ allowlist_externals =
setenv =
PYTHON_JULIACALL_HANDLE_SIGNALS=yes
commands =
python -c 'import juliacall' # force install of all deps
pytest {posargs} --cov-report term-missing --cov-report html --cov-report xml --cov=braket
extras = test

Expand Down
Loading