Skip to content

Commit

Permalink
BLD: run pytest on wheels and sdist (#4913)
Browse files Browse the repository at this point in the history
  • Loading branch information
yut23 authored Jun 7, 2024
1 parent ed776d7 commit 748014d
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 85 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: "10.9" # as of CIBW 2.9, this is the default value, pin it so it can't be bumped silently
CIBW_ARCHS_WINDOWS: auto64
CIBW_BUILD_VERBOSITY: 1
CIBW_TEST_COMMAND: python -c "import yt"
CIBW_TEST_EXTRAS: test
CIBW_TEST_COMMAND: pytest -c {project}/pyproject.toml --rootdir . --color=yes --pyargs yt

- uses: actions/upload-artifact@v4
with:
Expand All @@ -67,11 +68,11 @@ jobs:

- name: Test sdist
run: |
python -m pip install "$(echo dist/*.tar.gz)"
python -m pip install "$(echo dist/*.tar.gz)[test]"
python -m pip list
project_dir=$(pwd)
cd ../../
python -c "import yt"
pytest -c $project_dir/pyproject.toml --rootdir . --color=yes --pyargs yt
- name: Upload sdist
uses: actions/upload-artifact@v4
Expand Down
164 changes: 82 additions & 82 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -335,88 +335,88 @@ addopts = '''
-s
-v
-rsfE
--ignore-glob='*_nose.py'
--ignore='yt/data_objects/level_sets/tests/test_clump_finding.py'
--ignore='yt/data_objects/tests/test_connected_sets.py'
--ignore='yt/data_objects/tests/test_data_containers.py'
--ignore='yt/data_objects/tests/test_dataset_access.py'
--ignore='yt/data_objects/tests/test_disks.py'
--ignore='yt/data_objects/tests/test_particle_filter.py'
--ignore='yt/data_objects/tests/test_particle_trajectories.py'
--ignore='yt/data_objects/tests/test_pickling.py'
--ignore='yt/data_objects/tests/test_regions.py'
--ignore='yt/fields/tests/test_particle_fields.py'
--ignore='yt/fields/tests/test_vector_fields.py'
--ignore='yt/fields/tests/test_xray_fields.py'
--ignore='yt/frontends/adaptahop/tests/test_outputs.py'
--ignore='yt/frontends/ahf/tests/test_outputs.py'
--ignore='yt/frontends/amrex/tests/test_outputs.py'
--ignore='yt/frontends/amrvac/tests/test_outputs.py'
--ignore='yt/frontends/amrvac/tests/test_units_override.py'
--ignore='yt/frontends/arepo/tests/test_outputs.py'
--ignore='yt/frontends/art/tests/test_outputs.py'
--ignore='yt/frontends/artio/tests/test_outputs.py'
--ignore='yt/frontends/athena/tests/test_outputs.py'
--ignore='yt/frontends/athena_pp/tests/test_outputs.py'
--ignore='yt/frontends/boxlib/tests/test_outputs.py'
--ignore='yt/frontends/cf_radial/tests/test_outputs.py'
--ignore='yt/frontends/chimera/tests/test_outputs.py'
--ignore='yt/frontends/cholla/tests/test_outputs.py'
--ignore='yt/frontends/chombo/tests/test_outputs.py'
--ignore='yt/frontends/eagle/tests/test_outputs.py'
--ignore='yt/frontends/enzo/tests/test_outputs.py'
--ignore='yt/frontends/enzo_e/tests/test_outputs.py'
--ignore='yt/frontends/exodus_ii/tests/test_outputs.py'
--ignore='yt/frontends/fits/tests/test_outputs.py'
--ignore='yt/frontends/flash/tests/test_outputs.py'
--ignore='yt/frontends/gadget/tests/test_outputs.py'
--ignore='yt/frontends/gadget_fof/tests/test_outputs.py'
--ignore='yt/frontends/gamer/tests/test_outputs.py'
--ignore='yt/frontends/gdf/tests/test_outputs.py'
--ignore='yt/frontends/gdf/tests/test_outputs_nose.py'
--ignore='yt/frontends/gizmo/tests/test_outputs.py'
--ignore='yt/frontends/halo_catalog/tests/test_outputs.py'
--ignore='yt/frontends/moab/tests/test_c5.py'
--ignore='yt/frontends/nc4_cm1/tests/test_outputs.py'
--ignore='yt/frontends/open_pmd/tests/test_outputs.py'
--ignore='yt/frontends/owls/tests/test_outputs.py'
--ignore='yt/frontends/owls_subfind/tests/test_outputs.py'
--ignore='yt/frontends/ramses/tests/test_outputs.py'
--ignore='yt/frontends/rockstar/tests/test_outputs.py'
--ignore='yt/frontends/tipsy/tests/test_outputs.py'
--ignore='yt/frontends/ytdata/tests/test_old_outputs.py'
--ignore='yt/frontends/ytdata/tests/test_outputs.py'
--ignore='yt/frontends/ytdata/tests/test_unit.py'
--ignore='yt/geometry/coordinates/tests/test_axial_pixelization.py'
--ignore='yt/geometry/coordinates/tests/test_cylindrical_coordinates.py'
--ignore='yt/geometry/coordinates/tests/test_spherical_coordinates.py'
--ignore='yt/tests/test_funcs.py'
--ignore='yt/utilities/lib/cykdtree/tests/__init__.py'
--ignore='yt/utilities/lib/cykdtree/tests/test_kdtree.py'
--ignore='yt/utilities/lib/cykdtree/tests/test_plot.py'
--ignore='yt/utilities/lib/cykdtree/tests/test_utils.py'
--ignore='yt/utilities/tests/test_cosmology.py'
--ignore='yt/visualization/tests/test_callbacks.py'
--ignore='yt/visualization/tests/test_color_maps.py'
--ignore='yt/visualization/tests/test_geo_projections.py'
--ignore='yt/visualization/tests/test_image_writer.py'
--ignore='yt/visualization/tests/test_line_plots.py'
--ignore='yt/visualization/tests/test_mesh_slices.py'
--ignore='yt/visualization/tests/test_norm_api_custom_norm.py'
--ignore='yt/visualization/tests/test_norm_api_inf_zlim.py'
--ignore='yt/visualization/tests/test_norm_api_lineplot.py'
--ignore='yt/visualization/tests/test_norm_api_particleplot.py'
--ignore='yt/visualization/tests/test_norm_api_phaseplot_set_colorbar_explicit.py'
--ignore='yt/visualization/tests/test_norm_api_phaseplot_set_colorbar_implicit.py'
--ignore='yt/visualization/tests/test_norm_api_profileplot.py'
--ignore='yt/visualization/tests/test_norm_api_set_background_color.py'
--ignore='yt/visualization/tests/test_particle_plot.py'
--ignore='yt/visualization/tests/test_plot_modifications.py'
--ignore='yt/visualization/tests/test_plotwindow.py'
--ignore='yt/visualization/tests/test_profile_plots.py'
--ignore='yt/visualization/tests/test_raw_field_slices.py'
--ignore='yt/visualization/volume_rendering/tests/test_mesh_render.py'
--ignore='yt/visualization/volume_rendering/tests/test_vr_orientation.py'
--ignore-glob='/*_nose.py'
--ignore-glob='/*/yt/data_objects/level_sets/tests/test_clump_finding.py'
--ignore-glob='/*/yt/data_objects/tests/test_connected_sets.py'
--ignore-glob='/*/yt/data_objects/tests/test_data_containers.py'
--ignore-glob='/*/yt/data_objects/tests/test_dataset_access.py'
--ignore-glob='/*/yt/data_objects/tests/test_disks.py'
--ignore-glob='/*/yt/data_objects/tests/test_particle_filter.py'
--ignore-glob='/*/yt/data_objects/tests/test_particle_trajectories.py'
--ignore-glob='/*/yt/data_objects/tests/test_pickling.py'
--ignore-glob='/*/yt/data_objects/tests/test_regions.py'
--ignore-glob='/*/yt/fields/tests/test_particle_fields.py'
--ignore-glob='/*/yt/fields/tests/test_vector_fields.py'
--ignore-glob='/*/yt/fields/tests/test_xray_fields.py'
--ignore-glob='/*/yt/frontends/adaptahop/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/ahf/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/amrex/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/amrvac/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/amrvac/tests/test_units_override.py'
--ignore-glob='/*/yt/frontends/arepo/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/art/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/artio/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/athena/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/athena_pp/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/boxlib/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/cf_radial/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/chimera/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/cholla/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/chombo/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/eagle/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/enzo/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/enzo_e/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/exodus_ii/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/fits/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/flash/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/gadget/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/gadget_fof/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/gamer/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/gdf/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/gdf/tests/test_outputs_nose.py'
--ignore-glob='/*/yt/frontends/gizmo/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/halo_catalog/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/moab/tests/test_c5.py'
--ignore-glob='/*/yt/frontends/nc4_cm1/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/open_pmd/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/owls/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/owls_subfind/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/ramses/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/rockstar/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/tipsy/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/ytdata/tests/test_old_outputs.py'
--ignore-glob='/*/yt/frontends/ytdata/tests/test_outputs.py'
--ignore-glob='/*/yt/frontends/ytdata/tests/test_unit.py'
--ignore-glob='/*/yt/geometry/coordinates/tests/test_axial_pixelization.py'
--ignore-glob='/*/yt/geometry/coordinates/tests/test_cylindrical_coordinates.py'
--ignore-glob='/*/yt/geometry/coordinates/tests/test_spherical_coordinates.py'
--ignore-glob='/*/yt/tests/test_funcs.py'
--ignore-glob='/*/yt/utilities/lib/cykdtree/tests/__init__.py'
--ignore-glob='/*/yt/utilities/lib/cykdtree/tests/test_kdtree.py'
--ignore-glob='/*/yt/utilities/lib/cykdtree/tests/test_plot.py'
--ignore-glob='/*/yt/utilities/lib/cykdtree/tests/test_utils.py'
--ignore-glob='/*/yt/utilities/tests/test_cosmology.py'
--ignore-glob='/*/yt/visualization/tests/test_callbacks.py'
--ignore-glob='/*/yt/visualization/tests/test_color_maps.py'
--ignore-glob='/*/yt/visualization/tests/test_geo_projections.py'
--ignore-glob='/*/yt/visualization/tests/test_image_writer.py'
--ignore-glob='/*/yt/visualization/tests/test_line_plots.py'
--ignore-glob='/*/yt/visualization/tests/test_mesh_slices.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_custom_norm.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_inf_zlim.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_lineplot.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_particleplot.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_phaseplot_set_colorbar_explicit.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_phaseplot_set_colorbar_implicit.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_profileplot.py'
--ignore-glob='/*/yt/visualization/tests/test_norm_api_set_background_color.py'
--ignore-glob='/*/yt/visualization/tests/test_particle_plot.py'
--ignore-glob='/*/yt/visualization/tests/test_plot_modifications.py'
--ignore-glob='/*/yt/visualization/tests/test_plotwindow.py'
--ignore-glob='/*/yt/visualization/tests/test_profile_plots.py'
--ignore-glob='/*/yt/visualization/tests/test_raw_field_slices.py'
--ignore-glob='/*/yt/visualization/volume_rendering/tests/test_mesh_render.py'
--ignore-glob='/*/yt/visualization/volume_rendering/tests/test_vr_orientation.py'
'''

Expand Down

0 comments on commit 748014d

Please sign in to comment.