-
Notifications
You must be signed in to change notification settings - Fork 21
Apply some important fixes #579
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f12d722
Require Pyccel version >= 2.2.3
yguclu 030356a
Require h5py >= 3.16
yguclu 3098869
Return error code on failure of psydac compile and test commands
yguclu d07ba19
Add unit tests which should always fail in CI
yguclu 29416a9
Clean up .gitignore
yguclu 990acca
Rename failing test to avoid automatic collection
yguclu 7e7a289
Add useless copyright header to __init__.py for consistency
yguclu 318a15a
Copy pytest.ini into CWD when running Pytest directly
yguclu 561c7a1
Use pytest.ini for coverage configuration
yguclu 42bbe0d
Check that `psydac test` command reports failures correctly
yguclu e8195f0
Migrate from pytest.ini to pytest.toml
yguclu 82b568a
Require NumPy >= 2.1 to support Python >= 3.10
yguclu 310e34c
Update psydac_test.py: pytest.ini -> pytest.toml
yguclu c342233
Restrict numpy version to < 2.4
yguclu 6067a21
Replace pytest.ini w/ pytest.toml in coverage tests
yguclu 680c7ff
Clarify version requirements in pyproject.toml
yguclu 9ca350e
Don't run postprocessing unit tests with pytest-xdist:
yguclu 1583bd5
Run example tests in separate folder
yguclu 85ea890
Rename CI test directory: pytest -> scratch
yguclu 3083bc8
Don't use nonexistent pytest.ini as test trigger
yguclu 0be33a3
Check Pyccel flags in test folder
yguclu 2838aa6
Install h5py from PyPI in CI
yguclu 637a38f
Update CHANGELOG.md
yguclu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
| #---------------------------------------------------------------------------# | ||
| # This file is part of PSYDAC which is released under MIT License. See the # | ||
| # LICENSE file or go to https://github.com/pyccel/psydac/blob/devel/LICENSE # | ||
| # for full license details. # | ||
| #---------------------------------------------------------------------------# |
This file contains hidden or 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,26 @@ | ||
| #---------------------------------------------------------------------------# | ||
| # This file is part of PSYDAC which is released under MIT License. See the # | ||
| # LICENSE file or go to https://github.com/pyccel/psydac/blob/devel/LICENSE # | ||
| # for full license details. # | ||
| #---------------------------------------------------------------------------# | ||
| """ | ||
| This module contains only tests which are designed to fail, to check that the | ||
| error handling in the `psydac test` command works correctly. This will be used | ||
| in the CI to verify that the test suite correctly reports failures, by running | ||
| `psydac test` on this file and verifying that the CI fails as expected. | ||
| """ | ||
| import pytest | ||
|
|
||
|
|
||
| msg_tmp = "This {}test is designed to fail to check error handling in the test suite." | ||
|
|
||
| def test_failure(): | ||
| assert False, msg_tmp.format("") | ||
|
|
||
| @pytest.mark.mpi | ||
| def test_failure_mpi(): | ||
| assert False, msg_tmp.format("MPI ") | ||
|
|
||
| @pytest.mark.petsc | ||
| def test_failure_petsc(): | ||
| assert False, msg_tmp.format("PETSc ") |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.