Skip to content

Commit 726c547

Browse files
committed
- fix github linting action
1 parent cd51e4d commit 726c547

File tree

1 file changed

+13
-50
lines changed

1 file changed

+13
-50
lines changed

.github/workflows/lint.yml

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,13 @@
1-
name: lint
2-
3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
10-
11-
jobs:
12-
mypy:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
17-
- uses: actions/setup-python@v5
18-
with:
19-
# Use the lowest version of Python supported
20-
python-version: "3.9"
21-
22-
- uses: actions/cache@v4
23-
with:
24-
path: ~/.cache/pip
25-
key: setup-python-${{ runner.os }}-mypy-pip-${{ hashFiles('**/setup.cfg') }}
26-
restore-keys: |
27-
setup-python-${{ runner.os }}-mypy-pip
28-
29-
- name: Install mypy
30-
run: pip install -e '.[mypy]'
31-
32-
- uses: pr-annotators/[email protected]
33-
34-
- name: Run mypy
35-
run: mypy django_cryptography/
36-
37-
pre-commit:
38-
runs-on: ubuntu-latest
39-
steps:
40-
- uses: actions/checkout@v4
41-
42-
- uses: actions/setup-node@v4
43-
with:
44-
node-version: "16"
45-
46-
- uses: actions/setup-python@v5
47-
with:
48-
python-version: "3.10"
49-
50-
- uses: pre-commit/[email protected]
1+
name: "Linting"
2+
runs:
3+
using: "composite"
4+
steps:
5+
- uses: actions/[email protected]
6+
7+
- name: Set up Python 3.9
8+
uses: actions/[email protected]
9+
with:
10+
python-version: "3.9"
11+
12+
- name: pre-commit
13+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)