Skip to content

Commit

Permalink
TST: split nose --ignore-file args over multiple lines to mitigate co…
Browse files Browse the repository at this point in the history
…nflict frequency
  • Loading branch information
neutrinoceros committed Feb 21, 2023
1 parent 2cc076b commit 4df3c5b
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 28 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,10 @@ jobs:
run: source ./tests/ci_install.sh
- name: Run Tests (pytest)
if: matrix.test-runner == 'pytest'
env:
testsuite: ${{ matrix.tests-type }}
run: pytest --color=yes
- name: Run Tests (nose)
if: matrix.test-runner == 'nose'
env:
testsuite: ${{ matrix.tests-type }}
run: python -m nose -c nose_${testsuite}.cfg --traverse-namespace
run: cat nose_ignores.txt | xargs python -m nose -c nose_unit.cfg --traverse-namespace
- name: Report Failed Answers
if: ${{ matrix.tests-type == 'answer' && failure() }}
shell: bash
Expand Down
27 changes: 27 additions & 0 deletions nose_ignores.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--ignore-file=test_add_field\.py
--ignore-file=test_ambiguous_fields\.py
--ignore-file=test_callable_grids\.py
--ignore-file=test_commons\.py
--ignore-file=test_data_reload\.py
--ignore-file=test_eps_writer\.py
--ignore-file=test_external_frontends\.py
--ignore-file=test_field_access_pytest\.py
--ignore-file=test_file_sanitizer\.py
--ignore-file=test_firefly\.py
--ignore-file=test_geometries\.py
--ignore-file=test_glue\.py
--ignore-file=test_invalid_origin\.py
--ignore-file=test_line_annotation_unit\.py
--ignore-file=test_load_archive\.py
--ignore-file=test_load_errors\.py
--ignore-file=test_load_sample\.py
--ignore-file=test_normal_plot_api\.py
--ignore-file=test_on_demand_imports\.py
--ignore-file=test_outputs_pytest\.py
--ignore-file=test_registration\.py
--ignore-file=test_sanitize_center\.py
--ignore-file=test_save\.py
--ignore-file=test_set_zlim\.py
--ignore-file=test_stream_particles\.py
--ignore-file=test_stream_stretched\.py
--ignore-file=test_version\.py
1 change: 0 additions & 1 deletion nose_unit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ nologcapture=1
verbosity=2
where=yt
with-timer=1
ignore-files=(test_load_errors.py|test_load_sample.py|test_commons.py|test_ambiguous_fields.py|test_field_access_pytest.py|test_save.py|test_line_annotation_unit.py|test_eps_writer.py|test_registration.py|test_invalid_origin.py|test_outputs_pytest\.py|test_normal_plot_api\.py|test_load_archive\.py|test_stream_particles\.py|test_file_sanitizer\.py|test_version\.py|\test_on_demand_imports\.py|test_set_zlim\.py|test_add_field\.py|test_glue\.py|test_geometries\.py|test_firefly\.py|test_callable_grids\.py|test_external_frontends\.py|test_stream_stretched\.py|test_sanitize_center\.py|test_data_reload\.py)
exclude-test=yt.frontends.gdf.tests.test_outputs.TestGDF
46 changes: 24 additions & 22 deletions tests/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,34 +205,36 @@ answer_tests:

other_tests:
unittests:
# keep in sync with nose_ignores.txt
- "--exclude=test_mesh_slices" # disable randomly failing test
- "--ignore=test_outputs_pytest"
- "--ignore-files=test_load_errors.py"
- "--ignore-files=test_commons.py"
- "--ignore-files=test_line_annotation_unit.py"
- "--ignore-files=test_load_sample.py"
- "--ignore-files=test_field_access_pytest.py"
- "--ignore-files=test_ambiguous_fields.py"
- "--ignore-files=test_eps_writer.py"
- "--ignore-files=test_save.py"
- "--ignore-files=test_registration.py"
- "--ignore-files=test_invalid_origin.py"
- "--ignore-files=test_load_archive\\.py"
- "--ignore-file=test_on_demand_imports\\.py"
- "--ignore-files=test_outputs_pytest\\.py"
- "--ignore-files=test_normal_plot_api\\.py"
- "--ignore-file=test_file_sanitizer\\.py"
- "--ignore-files=test_version\\.py"
- "--ignore-files=test_set_zlim\\.py"
- "--ignore-file=test_add_field\\.py"
- "--ignore-file=test_glue\\.py"
- "--ignore-file=test_geometries\\.py"
- "--ignore-file=test_firefly\\.py"
- "--ignore-file=test_ambiguous_fields\\.py"
- "--ignore-file=test_callable_grids\\.py"
- "--ignore-file=test_external_frontends\\.py"
- "--ignore-file=test_commons\\.py"
- "--ignore-file=test_data_reload\\.py"
- "--ignore-file=test_eps_writer\\.py"
- "--ignore-file=test_external_frontends\\.py"
- "--ignore-file=test_field_access_pytest\\.py"
- "--ignore-file=test_file_sanitizer\\.py"
- "--ignore-file=test_firefly\\.py"
- "--ignore-file=test_geometries\\.py"
- "--ignore-file=test_glue\\.py"
- "--ignore-file=test_invalid_origin\\.py"
- "--ignore-file=test_line_annotation_unit\\.py"
- "--ignore-file=test_load_archive\\.py"
- "--ignore-file=test_load_errors\\.py"
- "--ignore-file=test_load_sample\\.py"
- "--ignore-file=test_normal_plot_api\\.py"
- "--ignore-file=test_on_demand_imports\\.py"
- "--ignore-file=test_outputs_pytest\\.py"
- "--ignore-file=test_registration\\.py"
- "--ignore-file=test_sanitize_center\\.py"
- "--ignore-file=test_save\\.py"
- "--ignore-file=test_set_zlim\\.py"
- "--ignore-file=test_stream_particles\\.py"
- "--ignore-file=test_stream_stretched\\.py"
- "--ignore-files=test_sanitize_center\\.py"
- "--ignore-file=test_version\\.py"
- "--exclude-test=yt.frontends.gdf.tests.test_outputs.TestGDF"
- "--exclude-test=yt.frontends.adaptahop.tests.test_outputs"
- "--exclude-test=yt.frontends.stream.tests.test_stream_particles.test_stream_non_cartesian_particles"
Expand Down

0 comments on commit 4df3c5b

Please sign in to comment.