-
Notifications
You must be signed in to change notification settings - Fork 45
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
Improve Python build process and streamline CI #600
Improve Python build process and streamline CI #600
Conversation
d53a96c
to
40733ec
Compare
python/tests/GeotrellisTests.py
Outdated
|
||
import pytest | ||
|
||
on_circle_ci = os.environ.get("CIRCLECI", "false") == "true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is CircleCI still in use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope
# TODO: Where does this go, do we need it? | ||
# - name: upload artefacts | ||
# uses: ./.github/actions/upload_artefacts | ||
|
||
# TODO: Where does this go, do we need it? | ||
# - uses: actions/cache@v3 | ||
# with: | ||
# path: ./dist/* | ||
# key: dist-${{ github.sha }} | ||
|
||
# TODO: Where does this go? | ||
# - name: upload wheel | ||
# working-directory: dist | ||
# shell: bash | ||
# run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@echeipesh what is the correct workflow here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actions/cache@v3
is an optimization to pull the assembly from workflow cache. We don't need it. It's alright or even better to rebuild it.
I'm not sure where the wheel goes yet, PyPi eventually but I'll need to figure out how that happens.
the artefacts bit is for debugging failed CI. I never used that part of the CI. So much has changed and I think will change a little more that I'm not worried about it. I'm sure when we need it we will wire it right up.
Overall I think the CI is good and even green. I'm a little surprised we didn't end up needing GDAL for the tests though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Changes made:
/python
folderpoetry
andpyproject.toml
to manage dependencies and project metadataMakefile
to manage main dev and CI events for both Scala and PythonBlack
andiSort
Note: This PR allows to build python wheel separately from the python documentation. Building the Python Markdown documentation still fails due to invalid URLs in the docs. Fixing the Python documentation should be covered in its own PR.