Skip to content

Commit 1aae54a

Browse files
authored
Merge pull request #2740 from benoitc/gh-actions
Split gh-actions into main/test + lint workflows, replace Travis badges
2 parents 80a62af + 71d6388 commit 1aae54a

File tree

3 files changed

+35
-29
lines changed

3 files changed

+35
-29
lines changed

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: lint
2+
on: [push, pull_request]
3+
jobs:
4+
tox-lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- uses: actions/setup-python@v2
9+
- run: pip install --upgrade pip
10+
- run: pip install tox
11+
- run: tox -e lint
12+
13+
tox-docs-lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
18+
- run: pip install --upgrade pip
19+
- run: pip install tox
20+
- run: tox -e docs-lint
21+
22+
tox-pycodestyle:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-python@v2
27+
- run: pip install --upgrade pip
28+
- run: pip install tox
29+
- run: tox -e pycodestyle

.github/workflows/tox.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,6 @@
11
name: tox
22
on: [push, pull_request]
33
jobs:
4-
tox-lint:
5-
runs-on: ubuntu-latest
6-
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-python@v2
9-
- run: pip install --upgrade pip
10-
- run: pip install tox
11-
- run: tox -e lint
12-
13-
tox-docs-lint:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v2
18-
- run: pip install --upgrade pip
19-
- run: pip install tox
20-
- run: tox -e docs-lint
21-
22-
tox-pycodestyle:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-python@v2
27-
- run: pip install --upgrade pip
28-
- run: pip install tox
29-
- run: tox -e pycodestyle
30-
314
tox:
325
strategy:
336
fail-fast: false

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ Gunicorn
99
:alt: Supported Python versions
1010
:target: https://pypi.python.org/pypi/gunicorn
1111

12-
.. image:: https://travis-ci.org/benoitc/gunicorn.svg?branch=master
12+
.. image:: https://github.com/benoitc/gunicorn/actions/workflows/tox.yml/badge.svg
1313
:alt: Build Status
14-
:target: https://travis-ci.org/benoitc/gunicorn
14+
:target: https://github.com/benoitc/gunicorn/actions/workflows/tox.yml
15+
16+
.. image:: https://github.com/benoitc/gunicorn/actions/workflows/lint.yml/badge.svg
17+
:alt: Lint Status
18+
:target: https://github.com/benoitc/gunicorn/actions/workflows/lint.yml
1519

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

0 commit comments

Comments
 (0)