Skip to content

Commit cf003a3

Browse files
committed
Run Linter tests on GHA
1 parent 60cb659 commit cf003a3

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
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+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
name: Lint
10+
runs-on: ubuntu-20.04
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Install CPython 3.8
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
20+
architecture: x64
21+
22+
- name: Install/fetch dependencies
23+
run: |
24+
set -exuo pipefail
25+
pip install --upgrade pip setuptools
26+
pip install tox
27+
28+
- name: Run linter
29+
run: tox -e lint

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ jobs:
1212
arch: ppc64le
1313
- python: "3.8"
1414
arch: s390x
15-
- python: "3.8"
16-
env: LINTER=1
1715

1816
services:
1917
- docker

tests/travis.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
set -exo pipefail
44

5-
if [[ "$LINTER" == "1" ]]; then
6-
tox -e lint
7-
else
8-
pytest -s --cov auditwheel --cov-branch
9-
auditwheel lddtree $(python -c 'import sys; print(sys.executable)')
10-
codecov || true # Ignore failures from codecov tool
11-
fi
5+
pytest -s --cov auditwheel --cov-branch
6+
auditwheel lddtree $(python -c 'import sys; print(sys.executable)')
7+
codecov || true # Ignore failures from codecov tool

0 commit comments

Comments
 (0)