diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2020-05-18 14:39:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 14:39:22 -0400 |
commit | 7d978e13c3762bb58005e7f36c0514b64a1c5005 (patch) | |
tree | 1fd43a013351b2ce1a1ee5325a892b94febfa04d | |
parent | a675c2a10985405ef9fddcc80b1e79d4553b4cdf (diff) | |
download | python-markdown-7d978e13c3762bb58005e7f36c0514b64a1c5005.tar.gz |
Add push trigger to tox workflow. (#968)
* The build button/badge in the README now only points to push events so that an unmerged failing PR doesn't cause the build status to show as 'failing.'
* Restrict node setup to checklinks env.
-rw-r--r-- | .github/workflows/tox.yml | 13 | ||||
-rw-r--r-- | README.md | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 2c002a7..c8fbd98 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -1,8 +1,16 @@ -# This workflow will install Python dependencies and run tox tests with a matrix of Python versions. +# This workflow will install dependencies and run tests/linters with a matrix of tox environments. name: CI -on: [pull_request] +on: + push: + branches: + - master + tags: + - '**' + pull_request: + branches: + - '**' jobs: test: @@ -67,6 +75,7 @@ jobs: with: python-version: 3.7 - name: Setup Node + if: ${{ matrix.tox-env == 'checklinks' }} uses: actions/setup-node@v1 with: node-version: '10' @@ -8,8 +8,8 @@ [![BSD License][bsdlicense-button]][bsdlicense] [![Code of Conduct][codeofconduct-button]][Code of Conduct] -[build-button]: https://github.com/Python-Markdown/markdown/workflows/CI/badge.svg -[build]: https://github.com/Python-Markdown/markdown/actions?query=workflow%3ACI +[build-button]: https://github.com/Python-Markdown/markdown/workflows/CI/badge.svg?event=push +[build]: https://github.com/Python-Markdown/markdown/actions?query=workflow%3ACI+event%3Apush [codecov-button]: https://codecov.io/gh/Python-Markdown/markdown/branch/master/graph/badge.svg [codecov]: https://codecov.io/gh/Python-Markdown/markdown [mdversion-button]: https://img.shields.io/pypi/v/Markdown.svg |