-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (41 loc) · 1.24 KB
/
lint_python.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: lint_python
on:
pull_request:
push:
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Upgrade pip and install dependencies
run: |
pip install --upgrade pip setuptools ruff
pip install -e ".[dev]"
- name: Code formatting check
run: black --check .
- name: Spell check
run: codespell --ignore-words-list="ro" --skip="*.json,*.lock,./.git"
- name: Ruff check
run: ruff check .
- name: Type checking with mypy
run: mypy --non-interactive .
- name: Copy CKEditor files
run: cp -R django_ckeditor_5 example/blog
- name: Change directory to example
run: cd example
- name: Install dependencies in example
run: pip install -e ".[dev]"
- name: Run tests with pytest
run: pytest example/blog
- name: Print Python version
run: python --version
- name: Print pip version
run: pip --version
- name: List installed pip packages
run: pip list
# - name: Check for vulnerabilities
# run: safety check