Skip to content

Add an import-only test matrix entry #7939

Open

Description

@eteq

#7932 / #7938 are about a subtle bug that came from accidentally implicitly creating a pytest dependency. Currently the test suite misses that case because the tests require pytest, so you can't get around installing pytest.

But one could imagine a fairly simple script that installs numpy, cython, and jinja, builds, and imports astropy and all the sub-packages without running any tests. That wouldn't add too much time and would catch any "implcit dependency" problems a PR might introduce...

I think I may have seen this idea years back and its conceivable there's a duplicate issue about this before... But I couldn't find it.

Activity

  1. drdavella commented on Oct 22, 2018

    @drdavella
    Contributor

    I agree with this PR and think it's the right thing to do. We should probably strive to be purists about our dependencies. 👼

    On the other hand, part of me wonders what's so bad about having pytest as a runtime dependency if we just declare it as such in setup.py? 😈

  2. bsipocz commented on Oct 22, 2018

    @bsipocz
    Member

    I suspect this should be easy to do in a pipeline, but if we want to do it sooner rather than later, we can also hack it into .travis.yml.

  3. bsipocz commented on Oct 22, 2018

    @bsipocz
    Member

    (GH is really flaky today, I haven't even seen @drdavella's comment above before I hit comment on mine)

  4. pllim commented on May 11, 2020

    @pllim
    Member

    Maybe related to #10246

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions