Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor into a composite action (#9)
* workflows/ci: lint at Python 3.7 Signed-off-by: William Woodruff <[email protected]> * action.py: Python 3.7 concessions Signed-off-by: William Woodruff <[email protected]> * Makefile: move `black` up Signed-off-by: William Woodruff <[email protected]> * action.yml: begin rewriting as composite WIP. Signed-off-by: William Woodruff <[email protected]> * action.yml: plumb inputs Signed-off-by: William Woodruff <[email protected]> * action.yml: plumb environment Signed-off-by: William Woodruff <[email protected]> * Dockerfile, action.yml: remove old Docker code Signed-off-by: William Woodruff <[email protected]> * action.yml: set working-directory for each step Signed-off-by: William Woodruff <[email protected]> * action.yml: remove working-directory settings These are wrong; we don't want to override the working directory like this. Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: add an environment selftest Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: fix args Signed-off-by: William Woodruff <[email protected]> * action: support virtual environments Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: add a selftest for venvs Signed-off-by: William Woodruff <[email protected]> * action: fix env handling Can't really be null, since we unconditionally populate variables. Signed-off-by: William Woodruff <[email protected]> * action: debugging support Signed-off-by: William Woodruff <[email protected]> * selftest: debug Signed-off-by: William Woodruff <[email protected]> * action.py: debugging Signed-off-by: William Woodruff <[email protected]> * action.py: debugging Signed-off-by: William Woodruff <[email protected]> * action.py: don't run pip-audit through `python -m` Conflicts with virtual environments. Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: actually assert outputs Signed-off-by: William Woodruff <[email protected]> * action: set an internal output containing the table Signed-off-by: William Woodruff <[email protected]> * selftest: another testing approach Signed-off-by: William Woodruff <[email protected]> * action: make the output base64 ...to avoid newlines, which break ::set-output Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: decode Signed-off-by: William Woodruff <[email protected]> * action.py: round-trip back to string Signed-off-by: William Woodruff <[email protected]> * action.py: docs Signed-off-by: William Woodruff <[email protected]> * selftest: test the selftest, fully Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: missing IDs Signed-off-by: William Woodruff <[email protected]> * selftest: debug Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: make it pass Signed-off-by: William Woodruff <[email protected]> * selftest: bump pip in venv Signed-off-by: William Woodruff <[email protected]> * selftest: install wheel too Sigh. Signed-off-by: William Woodruff <[email protected]> * action: push venv handling into the action's YAML Signed-off-by: William Woodruff <[email protected]> * action.yml: install pip-audit into a virtual environment, if requested Temporary workaround? Signed-off-by: William Woodruff <[email protected]> * action.yml: docs Signed-off-by: William Woodruff <[email protected]> * action.py: return to `python -m pip_audit ...` Signed-off-by: William Woodruff <[email protected]> * action: add a `local` setting, clean up Signed-off-by: William Woodruff <[email protected]> * README: ToC, documentation Signed-off-by: William Woodruff <[email protected]> * selftest: remove debugging Signed-off-by: William Woodruff <[email protected]> * selftest: test `local` Signed-off-by: William Woodruff <[email protected]> * test: add a pyproject test Signed-off-by: William Woodruff <[email protected]> * workflows/selftest: add a pyproject selftest Signed-off-by: William Woodruff <[email protected]> * selftest: fix key Signed-off-by: William Woodruff <[email protected]> * action.py: gate debug prints correctly Signed-off-by: William Woodruff <[email protected]> * selftest: drop no-deps for pyproject test Not supported yet, see pypa/pip-audit#305. Signed-off-by: William Woodruff <[email protected]> * README: tweak troubleshooting help Signed-off-by: William Woodruff <[email protected]> * meta: add LICENSE, sections to README Signed-off-by: William Woodruff <[email protected]>
- Loading branch information