Skip to content

add some data validation #741

add some data validation

add some data validation #741

Workflow file for this run

name: Code quality
on:
push:
pull_request:
pull_request_target:
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.11"
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 black, isort and flake8
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/