Fixes #23046: Install dulwich in CI so Git backend tests run

dulwich is the optional 'git' extra and is not in requirements.txt, so CI
never had it installed. The four GitBackendCredentialIntegrationTestCase
tests added in #21252 have therefore been skipped since they were written,
leaving the Git data source credential handling without CI coverage.

These tests mock dulwich.porcelain.clone, so they only need the module to be
importable. Installing it in the test environment does not change what a
NetBox deployment pulls in: dulwich stays optional at runtime, as decided in
#12906.
This commit is contained in:
Jason Novinger 2026-09-11 01:45:11 -05:00
parent 6385c09837
commit ad10aa3381
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage tblib
# dulwich is the optional 'git' extra, so it is absent from requirements.txt.
# The Git data backend tests mock dulwich.porcelain.clone and only need the
# module to be importable; without it they skip silently.
pip install dulwich
- name: Check for missing migrations
run: python netbox/manage.py makemigrations --check