1
0
mirror of synced 2026-01-08 12:01:53 -05:00

address some feedback on Python guide

This commit is contained in:
Brian Cristante
2021-08-09 12:19:56 -04:00
parent 87eec0ba1b
commit bb9717d9df

View File

@@ -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/).