forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 815 Bytes
/
Copy pathlint_python.yml
File metadata and controls
30 lines (24 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: lint Python
on: [pull_request]
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
- run: pip install --upgrade pip wheel
- run: pip install -U bandit codespell flake8 isort pytest pyupgrade tox
- name: bandit
run: bandit -r . || true
- name: Run CodeSpell
run: codespell --ignore-words-list="brane,gool,ist,sherif,wil" --quiet-level=2 --skip="*.key" || true
- run: pip install -r requirements.txt || true
- name: Run tox
run: tox || true
- name: Run pytest
run: pytest . || true
- name: Test pytest with doctest
run: pytest --doctest-modules . || true
- name: MyPy
run: tox -e mypy