Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Restructure CI and add DevContainer build automation #116

Merged
merged 24 commits into from
May 19, 2023

Conversation

guzman-raphael
Copy link
Contributor

@guzman-raphael guzman-raphael commented May 16, 2023

Primarily this simplifies the CI to a design that enables composability with reusable GHA jobs.

Prebuilt image is now implemented and should reduce build errors others have reported. First Codespace build took ~2m30s for me (reduced since it pulls an image now).

Also, I did remove some features since it was unclear why they were needed when reviewing prior PR's. Happy to discuss if I am missing something.

@guzman-raphael guzman-raphael marked this pull request as ready for review May 16, 2023 23:54
Copy link
Collaborator

@kabilar kabilar left a comment

Choose a reason for hiding this comment

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

Thanks @guzman-raphael! In the proposed environments, one cannot locally run workflow-calcium-imaging with an editable version of element-calcium-imaging. I had set up the local-test environment to allow me to make edits to element-calcium-imaging locally and run the pytests. In the local-test/devcontainer.json, I added pip install -e ../element-calcium-imaging to allow for this:

"onCreateCommand": "pip install -r ./requirements_dev.txt && pip install -e . && pip install -e ../element-calcium-imaging && MYSQL_VER=8.0 docker compose down && MYSQL_VER=8.0 docker compose up --build --wait"

Copy link
Collaborator

@kabilar kabilar left a comment

Choose a reason for hiding this comment

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

Thanks @guzman-raphael! Going ahead with the merge since we are exploring an option to migrate the contents of the workflow to the element, and thus my above comment won't be a requirement.

@kabilar kabilar merged commit dcb7b39 into datajoint:main May 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants