mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
ci: test Python 3.13, check migrations, schema, deploy and audit
- Matrix 3.10-3.13; pip cache keyed on the requirements. - New steps: makemigrations --check, spectacular --validate --fail-on-warn, check --deploy --fail-level ERROR, pip-audit of the installed environment (the Django 4.2.30 advisories are ignored until the Django 5.2 upgrade), and a Docker image build. - The separate vrtManager unittest run is dropped; manage.py test already runs those tests. - CodeQL also runs on pull requests to master. - Docker installs into a plain venv instead of using the distro's python3-lxml and python3-libvirt; lxml>=6.1, since the distro's lxml 5.2.1 has CVE-2026-41066. - dev requirements add ruff and pip-audit.
This commit is contained in:
parent
b04f656d2b
commit
964b58778d
6 changed files with 55 additions and 29 deletions
|
|
@ -16,8 +16,6 @@ RUN apt-get update -qqy \
|
|||
python3-venv \
|
||||
python3-pip \
|
||||
python3-dev \
|
||||
python3-lxml \
|
||||
python3-libvirt \
|
||||
libvirt-dev \
|
||||
zlib1g-dev \
|
||||
nginx \
|
||||
|
|
@ -32,10 +30,10 @@ RUN apt-get update -qqy \
|
|||
# Setup webvirtcloud
|
||||
WORKDIR /srv/webvirtcloud
|
||||
|
||||
# Install Python dependencies first with system-site-packages to leverage prebuilt bindings
|
||||
# Install Python dependencies first; libvirt-python and python-ldap build from source
|
||||
COPY conf/requirements.txt conf/requirements.txt
|
||||
# hadolint ignore=DL3013,DL3042,SC1091
|
||||
RUN python3 -m venv --system-site-packages venv && \
|
||||
RUN python3 -m venv venv && \
|
||||
. venv/bin/activate && \
|
||||
pip3 install --no-cache-dir -U pip wheel && \
|
||||
pip3 install --no-cache-dir -r conf/requirements.txt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue