-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test workflow for legacy opmath (#5435)
Currently, the tests only run with the new opmath, so won't know if we introduced a bug that breaks the legacy opmath behaviour while it is still in its deprecation cycle. This PR creates a kwarg, `disable-opmath`, that can be passed when running the tests, and a corresponding workflow that runs tests with that kwarg set to True. This can also be used locally, i.e. `python -m pytest tests/ --disable-opmath=True` Right now, it runs with CI on the PR, but once the tests are all passing, the line triggering that will be removed and it will only run every 3-4 days, in the middle of the night. Then we will add it to the test matrix (separate PR to modify the plugin test matrix repo). The changes to .yml files and to the `conftest` files are all about allowing us to run these additional tests. A few modifications to tests were made to allow them to pass with both legacy opmath and new opmath. There is one test currently marked as xfail for new opmath that I would call a bug - I opened an issue here: #5512 --------- Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai> Co-authored-by: qottmann <korbinian.kottmann@gmail.com>
- Loading branch information
1 parent
9a03cce
commit a47d9bc
Showing
34 changed files
with
1,545 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Legacy opmath tests | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 2 * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tests: | ||
uses: ./.github/workflows/interface-unit-tests.yml | ||
secrets: | ||
codecov_token: ${{ secrets.CODECOV_TOKEN }} | ||
with: | ||
branch: 'master' | ||
run_lightened_ci: false | ||
disable_new_opmath: "True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.