Skip to content

Commit bd6168b

Browse files
committed
Simplify linting setup
1 parent 8427e3c commit bd6168b

File tree

1 file changed

+3
-43
lines changed

1 file changed

+3
-43
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,10 @@ env:
88
jobs:
99
lint:
1010
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
python-version: [3.8]
14-
1511
steps:
1612
- uses: actions/checkout@v2
17-
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v1
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
23-
- name: Set up Node/yarn
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: "16.x"
27-
28-
- name: Cache python wheels
29-
uses: actions/cache@v2
30-
with:
31-
path: ~/.cache/pip
32-
key: |
33-
${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py', 'docs/requirements.txt') }}
34-
restore-keys: |
35-
${{ runner.os }}-pip-${{ matrix.python-version }}-
36-
${{ runner.os }}-pip-
37-
38-
- name: Cache node_modules
39-
uses: actions/cache@v2
40-
with:
41-
path: "node_modules"
42-
key: |
43-
${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}
44-
45-
- name: Install dependencies
46-
run: |
47-
python -m pip install --upgrade pip setuptools wheel
48-
python -m pip install --upgrade pre-commit
49-
python -m pip install -e .
50-
yarn --frozen-lockfile
51-
52-
- name: Lint
53-
run: |
54-
pre-commit run --all-files
13+
- uses: actions/setup-python@v2
14+
- uses: pre-commit/[email protected]
5515

5616
# Build docs on a number of Python versions. In the future this can be
5717
# where tests go.
@@ -211,7 +171,7 @@ jobs:
211171
if: always()
212172

213173
publish:
214-
name: Publish to PyPi
174+
name: Publish to PyPI
215175
needs: [lint, tests]
216176
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
217177
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)