Skip to content

Commit

Permalink
Merge pull request #2740 from benoitc/gh-actions
Browse files Browse the repository at this point in the history
Split gh-actions into main/test + lint workflows, replace Travis badges
  • Loading branch information
javabrett committed Feb 20, 2022
2 parents 80a62af + 71d6388 commit 1aae54a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 29 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: lint
on: [push, pull_request]
jobs:
tox-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e lint

tox-docs-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e docs-lint

tox-pycodestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e pycodestyle
27 changes: 0 additions & 27 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
name: tox
on: [push, pull_request]
jobs:
tox-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e lint

tox-docs-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e docs-lint

tox-pycodestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install --upgrade pip
- run: pip install tox
- run: tox -e pycodestyle

tox:
strategy:
fail-fast: false
Expand Down
8 changes: 6 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ Gunicorn
:alt: Supported Python versions
:target: https://pypi.python.org/pypi/gunicorn

.. image:: https://travis-ci.org/benoitc/gunicorn.svg?branch=master
.. image:: https://github.com/benoitc/gunicorn/actions/workflows/tox.yml/badge.svg
:alt: Build Status
:target: https://travis-ci.org/benoitc/gunicorn
:target: https://github.com/benoitc/gunicorn/actions/workflows/tox.yml

.. image:: https://github.com/benoitc/gunicorn/actions/workflows/lint.yml/badge.svg
:alt: Lint Status
:target: https://github.com/benoitc/gunicorn/actions/workflows/lint.yml

Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork
worker model ported from Ruby's Unicorn_ project. The Gunicorn server is broadly
Expand Down

0 comments on commit 1aae54a

Please sign in to comment.