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

Update workflow file to install datashuttle. #394

Merged
merged 8 commits into from
Jun 10, 2024
Merged

Conversation

JoeZiminski
Copy link
Member

This PR changes the github workflow to install datashuttle as recommended in the docs. #393 shows that this was not sufficiently tested.

Currently it's not ideal, the full datashuttle install is performed from conda. Then, the datashuttle package itself is uninstalled so that the local version that has the tests can be installed. It would be nicer in many respects to have this as a different job. The reason I did do it this way is because I could find no (simple) way to share the strategy matrix across jobs. It would also require all the conda activation setup, so basically copy and pasting the whole job to change one line. However, maybe the isolation between jobs would be worth it...

This change does now leave the dependency install from pip untested. This could also be tested by using a different job. However, I'm not sure if it is worth it due to the duplication issue mentioned above, and the required spin-up of lots more runners. If we test the recommended install method that should be enough?

@JoeZiminski JoeZiminski requested a review from niksirbi June 10, 2024 09:37
@JoeZiminski
Copy link
Member Author

Hey @niksirbi could you take a very quick look at this? Would be interesting to see your thoughts. Basically it is a (little bit hacky) way to test the full install from conda forge doesn't break, and then remove it and install the local version for testing.

Copy link
Member

@niksirbi niksirbi left a comment

Choose a reason for hiding this comment

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

Well it's a bit hacky but it works.
I think fine to merge now, but maybe we should plan a hackathon to modify our actions for such scenarios. It's only datashuttle now, but movement (and others) will have similar problems once they are on conda-forge. Would be nice to test the conda and pip install bits separately.

.github/workflows/code_test_and_deploy.yml Outdated Show resolved Hide resolved
.github/workflows/code_test_and_deploy.yml Outdated Show resolved Hide resolved
@JoeZiminski JoeZiminski merged commit 617ab13 into main Jun 10, 2024
23 checks passed
@JoeZiminski JoeZiminski deleted the improve_install_tests branch June 10, 2024 12:18
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