From bb9717d9df84ad6e7fff7a9966497eebbf0a6a02 Mon Sep 17 00:00:00 2001 From: Brian Cristante <33549821+brcrista@users.noreply.github.com> Date: Mon, 9 Aug 2021 12:19:56 -0400 Subject: [PATCH] address some feedback on Python guide --- content/actions/guides/building-and-testing-python.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content/actions/guides/building-and-testing-python.md b/content/actions/guides/building-and-testing-python.md index 12dbcf7061..1b7cced9ab 100644 --- a/content/actions/guides/building-and-testing-python.md +++ b/content/actions/guides/building-and-testing-python.md @@ -218,7 +218,7 @@ steps: ### Requirements file -After you update `pip`, a typical next step is to install dependencies from *requirements.txt*. +After you update `pip`, a typical next step is to install dependencies from [requirements.txt](https://pip.pypa.io/en/stable/cli/pip_install/#example-requirements-file). {% raw %} ```yaml{:copy} @@ -318,9 +318,12 @@ steps: run: | pip install flake8 flake8 . + continue-on-error: true ``` {% endraw %} +The linting step has `continue-on-error: true` set. This will keep the workflow from failing if the linting step doesn't succeed. Once you've addressed all of the linting errors, you can remove this option so the workflow will catch new issues. + ### Running tests with tox With {% data variables.product.prodname_actions %}, you can run tests with tox and spread the work across multiple jobs. You'll need to invoke tox using the `-e py` option to choose the version of Python in your `PATH`, rather than specifying a specific version. For more information, see [tox](https://tox.readthedocs.io/en/latest/).