Skip to content

cirrus-ci add python version to lint task fingerprint#4047

Merged
jamesp merged 1 commit intoSciTools:masterfrom
bjlittle:cirrus-ci-lint-python-version
Mar 3, 2021
Merged

cirrus-ci add python version to lint task fingerprint#4047
jamesp merged 1 commit intoSciTools:masterfrom
bjlittle:cirrus-ci-lint-python-version

Conversation

@bjlittle
Copy link
Copy Markdown
Member

@bjlittle bjlittle commented Mar 2, 2021

🚀 Pull Request

Description

This PR adds the PYTHON_VERSION to the fingerprint of the pip_cache of the lint_task for cirrus-ci. This will be required to discriminate whenever the base Python version of the container changes, and thus should result in invalidating the pip_cache.

This PR also fully qualifies the use of environment variables and normalises the use of strings.


Consult Iris pull request check list

folder: ~/.cache/pip
fingerprint_script:
- echo "${CIRRUS_TASK_NAME}"
- echo "${CIRRUS_TASK_NAME} py${PYTHON_VERSION}"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Add the container base PYTHON_VERSION to the pip_cache fingerprint.

Copy link
Copy Markdown
Member

@jamesp jamesp left a comment

Choose a reason for hiding this comment

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

Looks good!

@jamesp jamesp merged commit 4047aa1 into SciTools:master Mar 3, 2021
@bjlittle bjlittle deleted the cirrus-ci-lint-python-version branch March 3, 2021 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants