This is intended to store the GitHub Actions workflows and actions which are shared by Citrine's public Python repos.
Sets up the environment in which it's being run. Upgrades pip and installs all dependencies, including the calling repo itself.
-
latest: if true, skips installing requirements.txt, instead relying on what's defined in the caller's setup.py install_requires.
-
documentation: if true, also installs the doc_requirements.txt file.
Kicks off four jobs to perform standard repo checks. Namely:
- linting, using
flake8
, - checks that the version number in /__version__.py was bumped
- looks for code marked deprecated, using
derp
- confirms the docs build doesn't throw any warnings
- src: The directory containing the repo's source code.
Runs the repo's tests against every supported Python version and every supported OS. It also kicks off a second run of tests in an environment where the dependency versions are the latest supported, instead of what's in requirements.txt.
- src: The directory containing the repo's source code.
Build and deploy the docs using GitHub Pages.
These are workflows which for whatever reason can't be shared. As such, we provide what it should look like in your repo.
Package the code and deploy it to PyPI. This requires you have an action secret defined called PYPI_API_TOKEN
.
See pypi/warehouse#11096 for details on why the PyPI deploy workflow cannot be shared.