CQCL / pytket-iqm

pytket-iqm, extensions for pytket quantum SDK
Apache License 2.0
2 stars 4 forks source link

Re-enable remote tests #7

Closed cqc-alec closed 2 years ago

cqc-alec commented 2 years ago

Closes #2 . A few updates to reflect changed API. Also fix mypy script.

cqc-alec commented 2 years ago

No idea why the tests are failing on Linux and MacOS (and not running on Windows?). They pass for me locally.

cqc-melf commented 2 years ago

Are you sure you have set the env variable for the remote test locally? I can try to run it and take a look, what do you think?

All extensions don't run the remote checks on windows, I would assume that it is an issue with the env variable on windows in python? Nothing I would worry about in this PR.

cqc-alec commented 2 years ago

Are you sure you have set the env variable for the remote test locally?

Yup:

(env) alec@psi:~/r/pytket-iqm/tests$ PYTKET_RUN_REMOTE_TESTS=1 pytest
=============================================== test session starts ===============================================
platform linux -- Python 3.9.5, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/alec/r/pytket-iqm, configfile: pytest.ini
plugins: timeout-1.4.2, hypothesis-6.54.1, requests-mock-1.9.3
collected 10 items                                                                                                

backend_test.py .......                                                                                     [ 70%]
convert_test.py ...                                                                                         [100%]

=============================================== 10 passed in 10.88s ===============================================
cqc-melf commented 2 years ago

Maybe it is an issue with the credentials, how have you set them? I will try this now.

cqc-alec commented 2 years ago

Maybe it is an issue with the credentials, how have you set them?

I have them set in ~/.config/pytket/config.json.

cqc-melf commented 2 years ago

Should work now