make views synchronous again, performance is actually better this way #1535
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code quality | |
on: | |
push: | |
pull_request: | |
env: | |
UV_SYSTEM_PYTHON: 1 | |
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.13" | |
architecture: x64 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "requirements.txt" | |
- name: Update setuptools/wheel | |
run: uv pip install -U setuptools wheel | |
- name: Install dependencies | |
run: | | |
uv pip install -r requirements.txt | |
uv pip install -r requirements/requirements-test.txt | |
uv pip install -r requirements/requirements-lint.txt | |
# Mitigate "Unable to import 'typing_extensions' (import-error)" | |
uv pip install typing-extensions | |
- 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: | | |
uv pip install -r requirements/requirements-dist.txt | |
python -m build | |
twine check --strict dist/* | |
- name: Run pylint | |
run: pylint --verbose ca/django_ca/ ca/ca/ docs/source/django_ca_sphinx/ devscripts/ |