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

Install dependencies for tests based on package install #951

Merged
merged 2 commits into from
Dec 8, 2023

Conversation

austinweisgrau
Copy link
Collaborator

@austinweisgrau austinweisgrau commented Dec 7, 2023

Parsons dependencies can be installed in two different ways.
pip install -r requirements.txt is equivalent to pip install parsons
UNLESS the environment variable PARSONS_LIMITED_DEPENDENCIES is set,
in which case the dependencies are installed based on the explicit
configuration in setup.py.

There can be drift between what is defined in requirements.txt and
what is defined in setup.py.

These changes ensure that both sets of dependencies are used to run
tests, ensuring alignment between test environments and actual usage.

An example is tests passing on this PR even though the same tests would fail when using PARSONS_LIMITED_DEPENDENCIES=1 pip install parsons[all] (as explained and fixed in this PR)

Parsons dependencies can be installed in two different ways.
`pip install -r requirements.txt` is equivalent to pip install parsons
UNLESS the environment variable `PARSONS_LIMITED_DEPENDENCIES` is set,
in which case the dependencies are installed based on the explicit
configuration in `setup.py`.

There can be drift between what is defined in requirements.txt and
what is defined in `setup.py`.

These changes ensure that both sets of dependencies are used to run
tests, ensuring alignment between test environments and actual usage.
Copy link
Contributor

@IanRFerguson IanRFerguson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for tackling this

@IanRFerguson IanRFerguson merged commit a13b2ca into move-coop:main Dec 8, 2023
10 checks passed
@austinweisgrau austinweisgrau deleted the tests-dependencies branch December 8, 2023 17:10
@shaunagm
Copy link
Collaborator

shaunagm commented Dec 8, 2023

My only concern about this is that it doubles the total number of tests, and might push us out of the free tier of Github actions. But we can always revisit if we run out of memory/minutes/compute/whatever-it-is-they-limit

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.

3 participants