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

Fixing Tests #44

Merged
merged 12 commits into from
Sep 23, 2024
Merged

Fixing Tests #44

merged 12 commits into from
Sep 23, 2024

Conversation

stroblme
Copy link
Member

@stroblme stroblme commented Sep 23, 2024

fixing tests in production..
This PR resolves #42

Signed-off-by: Melvin Strobl <[email protected]>
@stroblme stroblme changed the title Fixint tests Fixing Yests Sep 23, 2024
@stroblme stroblme changed the title Fixing Yests Fixing Tests Sep 23, 2024
@stroblme
Copy link
Member Author

status so far; with a clean checkout and fresh environment, I cannot reproduce the errors:

git clone ...
python -m venv .venv
source .venv/bin/activate
pip install pytest pennylane
pytest

.. works flawlessly

Melvin Strobl added 6 commits September 23, 2024 11:48
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
@stroblme
Copy link
Member Author

.. got it, issue was that gh was using the latest pennylane version (which caused some tests to fail). I adjusted the model accordingly to the latest pennylane version and also cleaned up some tests. The current implementation should also work with earlier versions of pennylane

Melvin Strobl added 5 commits September 23, 2024 12:39
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
Signed-off-by: Melvin Strobl <[email protected]>
@stroblme
Copy link
Member Author

this PR now introduces caches in the actions.. Let's be aware of that, so if we update packages, we should clear the cache: https://github.com/actions/setup-python?tab=readme-ov-file#caching-packages-dependencies

This was referenced Sep 23, 2024
Merged
@stroblme stroblme merged commit 449f302 into main Sep 23, 2024
1 check passed
@stroblme stroblme mentioned this pull request Sep 26, 2024
Merged
@majafranz majafranz deleted the tests branch November 15, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Find out, why tests fail on GH
1 participant