Skip to content

Refactor pre-commit workflow#123

Merged
cjolowicz merged 8 commits intomasterfrom
refactor-pre-commit-ci
Apr 24, 2020
Merged

Refactor pre-commit workflow#123
cjolowicz merged 8 commits intomasterfrom
refactor-pre-commit-ci

Conversation

@cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Apr 23, 2020

  • Redesign cache key
  • Allow partial matches (restore keys)

Key components:

  • runner.os
  • python version
  • python executable
  • pre-commit config

@cjolowicz cjolowicz added the ci Continuous Integration label Apr 23, 2020
@cjolowicz cjolowicz force-pushed the refactor-pre-commit-ci branch from cddf8f0 to b31972e Compare April 24, 2020 05:04
@cjolowicz cjolowicz force-pushed the refactor-pre-commit-ci branch from b31972e to b056963 Compare April 24, 2020 05:20
@cjolowicz cjolowicz force-pushed the refactor-pre-commit-ci branch from b056963 to 04a1c81 Compare April 24, 2020 05:31
@cjolowicz cjolowicz merged commit b5f0456 into master Apr 24, 2020
@cjolowicz cjolowicz deleted the refactor-pre-commit-ci branch April 24, 2020 08:51
cjolowicz added a commit to cjolowicz/cookiecutter-hypermodern-python that referenced this pull request Apr 24, 2020
* Use shell: python to set cache key

* Use step output instead of environment variable

* Include "pre-commit" prefix in step output

* Prefix cache key by runner OS

* Restore existing cache after configuration changes

* Simplify print statement

* Use a more human-readable cache key

* Move "pre-commit" to end of cache key prefix

cjolowicz/cookiecutter-hypermodern-python-instance#123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant