-
Notifications
You must be signed in to change notification settings - Fork 42
61 lines (46 loc) · 1.53 KB
/
quality.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
59
60
61
name: Code quality
on:
push:
pull_request:
jobs:
run:
runs-on: ubuntu-latest
env:
DJANGO_CA_SECRET_KEY: dummy
steps:
- name: Acquire sources
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.12"
architecture: x64
- name: Apply caching of dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: pip-${{ hashFiles('**/requirements-*.txt') }}
- name: Install dependencies
run: |
pip install -U pip setuptools wheel
pip install -r requirements.txt
pip install -r requirements/requirements-test.txt
pip install -r requirements/requirements-lint.txt
# Mitigate "Unable to import 'typing_extensions' (import-error)"
pip install typing-extensions
- name: Install program
run: pip install -e .
- name: Run ruff
run: python dev.py code-quality
# Will show outdated dependencies, etc
- name: Validate state
run: python dev.py validate state
- name: Check license headers
run: python dev.py validate license-headers
- name: Validate sdist/wheel
run: |
pip install -r requirements/requirements-dist.txt
python setup.py sdist bdist_wheel
twine check --strict dist/*
- name: Run pylint
run: pylint --verbose ca/django_ca/ ca/ca/ docs/source/django_ca_sphinx/ devscripts/