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

Call pytest on all tests #286

Merged
merged 3 commits into from
Dec 4, 2023
Merged

Call pytest on all tests #286

merged 3 commits into from
Dec 4, 2023

Conversation

nhuet
Copy link
Contributor

@nhuet nhuet commented Nov 27, 2023

Instead of calling explicitely pytest on each subdirectory of tests/, we call it directly on tests/ which will recursively look for any subdirectory.

Because of the previous strategy, we missed domains/ and flight_planning/ subdirectories.

@nhuet nhuet force-pushed the test-domain branch 4 times, most recently from 4c1f4dc to 82aa02b Compare November 28, 2023 15:03
Instead of calling explicitely pytest on each subdirectory of tests/, we
call it directly on tests/ which will recursively look for any
subdirectory.

Because of the previous strategy, we missed domains/ and
flight_planning/ subdirectories.
- For tests, we need gymnasium[classic-control] => added to
  dev-dependencies + install it together with pytest in github actions
  NB: we do it at the same time as installing scikit-decide wheel to be
  sure to have the proper version of gymnasium
- When IPython is not available, skip the function clear_output() as it
  is only for notebooks
- For flight planning, we need cartopy and pygrib dependencies:
   - add to dependencies installed with "domain" and "all" extras
   - do not install pygrib if on windows (does not exists)
   - do not install cartopy if on python<3.9 (no wheel, generates
     install issues)
   - skip tests for flight-planning if on windows or python<3.9
@g-poveda g-poveda merged commit d964686 into airbus:master Dec 4, 2023
38 checks passed
@nhuet nhuet deleted the test-domain branch December 12, 2023 08:33
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.

2 participants