125 Commits

Author SHA1 Message Date
Natalia
f87c2055b4 Fixed spell checking in docs GitHub Actions workflow.
The spelling check job was passing even with spelling errors because
the system spell checker (`aspell`) was not installed on the GitHub
Actions runner. While `sphinxcontrib.spelling` and `PyEnchant` were
installed via pip, they require a system-level spell checker backend
to function.
2026-01-29 11:20:11 -03:00
Jacob Walls
2351c1b12c Refs #36620 -- Ran coverage tests workflow on forks.
We can continue to limit the coverage comment workflow to django/django,
but now that this workflow is the main python test workflow, it should
run on forks by default. The other tests workflow (currently running
only JavaScript tests) may start running python tests again once we flesh
out the matrix, but since it was duplicating the coverage tests configuration,
we temporarily removed it.

Follow-up to 26b0e2bb92.
2026-01-23 10:13:11 -05:00
Skyiesac
e5cbb8b4be Fixed #36639 -- Added CI step to run makemigrations --check against test models. 2026-01-20 10:40:53 -05:00
Ülgen Sarıkavak
64ac4385c7 Bumped linter dependencies.
* psf/black-pre-commit-mirror: 25.9.0 -> 25.12.0
* pre-commit/mirrors-eslint: v9.36.0 -> v9.39.1
* zizmorcore/zizmor-pre-commit: v1.16.3 -> v1.19.0
* zizmorcore/zizmor-action: 0.2.0 -> 0.3.0
2026-01-12 08:57:36 -05:00
Natalia
4f580c4659 Extended GitHub pull request template to require AI assistance disclosure. 2026-01-08 12:01:53 -03:00
Pravin Kamble
ccf74f7dc7 Bumped checkout version in Github actions configuration. 2025-12-29 09:59:18 -05:00
saurabh
fd4c5fa3ed Refs #36620 -- Fixed PR number extraction in coverage_comment workflow.
Passing the PR number as an artifact is more reliable in cross-fork workflows.
2025-12-06 09:50:06 -05:00
saurabh
1dfd5aa2b5 Refs #36620 -- Removed PR number null check from coverage_comment workflow. 2025-12-05 10:11:00 -05:00
saurabh
26b0e2bb92 Fixed #36620 -- Fixed workflow to summarize coverage in PRs.
Follow-up to a89183e638, which was
reverted in e4c4a178aa because a change
to the workflow trigger resulted in the PR branch not being checked out.

We used this opportunity to reimplement the coverage tracing and coverage
commenting in a two-workflow pattern with more granular permissions.

To reduce duplicative workflows, we removed the existing python test workflow
on PRs, at least until we run more distinct configurations on GitHub actions. The
run with coverage tracing enabled is sufficient for now. The existing workflow still
runs on pushes to main. We can revisit when adding more test configurations.
2025-12-04 10:25:21 -05:00
Natalia
e48527f91d Added timeout-minutes directive to all GitHub Actions workflows.
GitHub Actions defaults to a 360-minute (6-hour) timeout. We've had jobs
hang due to issues in the parallel test runner, causing them to run for
the full 6 hours. This wastes resources and negatively impacts CI
availability, so explicit timeouts have been added to prevent
long-running hangs.
2025-11-26 08:00:53 -05:00
Natalia
e4c4a178aa Reverted "Fixed #36620 -- Added coverage workflow to summarize coverage in pull requests."
This reverts commit a89183e638.
2025-11-25 17:16:59 -05:00
saurabh
a89183e638 Fixed #36620 -- Added coverage workflow to summarize coverage in pull requests.
Part of GSoC 2025. Thanks Lily for mentorship, and Sarah Boyce and
Jacob Walls for reviews.
2025-11-21 16:26:57 -05:00
Jacob Walls
846613e521 Configured dangerous-triggers zizmor rule. 2025-11-21 14:36:32 -05:00
Jacob Walls
86b8058b40 Addressed unpinned-uses zizmor finding. 2025-11-21 14:36:28 -05:00
Jacob Walls
08f4901b3f Simplified actions after applying zizmor auto-fixes. 2025-11-21 14:36:23 -05:00
Jacob Walls
e8958c4690 Applied auto-fixes from zizmor findings. 2025-11-21 14:36:19 -05:00
Jacob Walls
09d4bf5cd9 Added GitHub Actions linter (zizmor).
At the direction of the Security Team. Thanks Markus Holtermann,
Jake Howard, and Natalia Bidart for reviews.
2025-11-21 14:36:15 -05:00
Jacob Walls
a1ce852e52 Refs #35844 -- Ran further selenium tests with --parallel=1. 2025-11-11 21:30:00 -05:00
Jacob Walls
c0d7fbe502 Refs #35844 -- Ran selenium tests with --parallel=1. 2025-11-11 18:28:07 -05:00
Markus Holtermann
01c70ba148 Fixed unsafe variable interpolation in GitHub Action workflow.
Thank you Davide Netti for the report and initial patch.

Co-authored-by: Davide Netti <davide.netti4@gmail.com>
2025-11-10 15:46:15 -03:00
Mariusz Felisiak
5e2bbebed9 Refs #36664 -- Added Python 3.15 to daily builds. 2025-10-22 15:36:10 +02:00
Mariusz Felisiak
56977b466c Refs #35844 -- Doc'd Python 3.14 compatibility. 2025-10-17 19:25:02 +02:00
Jacob Walls
d980d68609 Bumped minimum isort version to 7.0.0.
Added ignores relating to https://github.com/PyCQA/isort/issues/2352.
2025-10-16 14:59:02 -04:00
Mariusz Felisiak
37df013195 Fixed parameter names in in "New contributor" GitHub action.
Follow up to 407ab79357.
2025-10-15 17:35:29 -04:00
Jacob Walls
42758f882d Removed setuptools from GitHub actions.
Follow-up to 61c5c31732.
2025-10-14 08:41:32 -04:00
Jacob Walls
407ab79357 Pinned "New contributor" GitHub action to v1.
Later versions misidentify all contributors as new ones if the project
does not enable issues.

Follow-up to b7507bad77.
2025-10-14 07:50:16 -04:00
Chris Muthig
d514ca6c4e Refs #36595 -- Extended "postgis" GitHub Action to run against PostGIS 3.6.
Changed image exercise these versions:

* latest: POSTGIS="3.5.2 dea6d0a" PGSQL="170" GEOS="3.9.0-CAPI-1.16.2" PROJ="7.2.1"
* 17-master: POSTGIS="3.7.0dev 3.6.0rc2-55-gfda22140e" PGSQL="170" GEOS="3.15.0dev-CAPI-1.21.0" PROJ="9.8.0"
* 18-3.6-alpine: POSTGIS="3.6.0 0" PGSQL="180" GEOS="3.13.1-CAPI-1.19.2" PROJ="9.6.0"
2025-10-08 11:52:32 -03:00
Tim Kamanin
dfb04d9472 Added required "issue_message" input to "New contributor" GitHub action. 2025-10-07 22:41:06 -03:00
Mariusz Felisiak
5bd775703c Fixed #36623 -- Dropped support for PostgreSQL 14 and PostGIS 3.1. 2025-10-03 17:12:57 -04:00
Mariusz Felisiak
22448a4b65 Added PostgreSQL 18 to scheduled tests workflow. 2025-09-29 12:37:03 -03:00
Mariusz Felisiak
30e9b6f6ad Fixed warning in "New contributor" GitHub action. 2025-09-23 08:01:23 +02:00
Mariusz Felisiak
b7507bad77 Bumped versions in Github actions configuration. 2025-09-12 16:57:52 +02:00
Natalia
4f07767106 Added matrix with newer image versions to the "postgis" GitHub Action.
This work allows to test three types of postgis Docker images to cover
a wider spectrum of geo libraries versions:

* `latest` (recommended upstream): uses latest stable Debian packages.
  These versions are generally conservative, so they may lag behind.
* `alpine`: build PostGIS from source on Alpine, and ship newer
  geospatial libs.
* `master`: provides development versions, therefore coverage for what's
  coming. Future compatibility issues can be caught in advance.

This split is important because each image differs significantly in
GEOS/PROJ/GDAL versions, so testing all increases confidence in
compatibility. More info at https://hub.docker.com/r/postgis/postgis/.

For example, at the time of this branch:

* latest stable in debian:
  * POSTGIS="3.5.2 dea6d0a"
  * GEOS="3.9.0-CAPI-1.16.2"
  * PROJ="7.2.1"
* latest stable in alpine:
  * POSTGIS="3.5.3 0"
  * GEOS="3.13.1-CAPI-1.19.2"
  * PROJ="9.6.0
* latest development branch:
  * POSTGIS="3.6.0dev 3.6.0beta1-29-g7c8cfe07d"
  * GEOS="3.14.0beta2-CAPI-1.20.1"
  * PROJ="9.7.0"
2025-08-27 11:33:13 -03:00
Natalia
1b0c4d5ea5 Ensured apt repo is updated before installing deps in "postgis" GitHub Action. 2025-08-27 11:33:13 -03:00
David Smith
43e4d0a142 Fixed #36485 -- Added lint-docs check in Tox and GitHub Actions.
The `check` docs target now runs spelling, black, and lint, so all
current documentation quality checks can be run with a single command.

Also documented the lint-docs check's availability and usage.
2025-08-25 10:51:10 -03:00
David Smith
7a80e29fea Improved docs.yml GitHub Action covering docs quality checks.
This change renames the `docs` job to `spelling` to better reflect its
purpose. It also removes the unused `--keep-going` flag, since starting
with Sphinx 8.1, `--keep-going` is enabled by default.

See:
https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-keep-going
2025-08-08 16:39:50 -03:00
nessita
8499fba0e1 Fixed GitHub Action that checks commit prefixes to fetch PR head correctly. 2025-07-16 15:36:33 -03:00
nessita
10386fac00 Added GitHub Action to enforce stable branch commit message prefix. 2025-07-16 08:38:13 -03:00
nessita
8c56e93975 Refs #36009 -- Added GitHub action workflow to run tests with latest stable postgis version. 2025-06-17 15:25:47 -03:00
Sarah Boyce
18fa74fc88 Skipped "Labels" Github action when not targeting the main django/django repo. 2025-04-23 11:40:17 -03:00
nessita
0671a461c4 Pinned isort version to "<6.0.0" to avoid undesired reformat. 2025-01-28 22:17:40 -03:00
Sarah Boyce
1b6ec1f944 Switched to pull_request_target event trigger in the Labels Github action.
The `pull_request` trigger runs in the context of the PR, and has
limited access to information stored in the base repo django/django.
As access is needed to the label "no ticket" in django/django, use the
`pull_request_target` trigger.
2025-01-22 08:43:18 -03:00
nessita
862b7f98a0 Moved permissions setup to toplevel for the Labels Github action. 2025-01-21 14:15:27 -03:00
Sarah Boyce
5244ecbd22 Added GitHub action to label PRs without a ticket linked in title. 2025-01-21 11:49:40 -03:00
Mariusz Felisiak
f5772de696 Fixed #36005 -- Dropped support for Python 3.10 and 3.11. 2025-01-20 14:07:28 +01:00
David Smith
73d532d9a9 Upgraded to Python 3.12, Ubuntu 24.04, and enabled fail_on_warning for docs builds. 2024-11-27 15:20:49 -03:00
Mariusz Felisiak
7a1fa20e9b Made GitHub actions display all warnings in Python tests. 2024-10-25 10:05:19 +02:00
Mariusz Felisiak
48fa531fbc Refs #35844 -- Added Python 3.14 to daily builds. 2024-10-16 22:19:17 -03:00
nessita
470f4c2436 Added GitHub Action workflow to test all Python versions listed in the project config file. 2024-10-09 10:19:12 -03:00
Mariusz Felisiak
f07eeff3a2 Refs #34900 -- Added Python 3.12 to classifiers and tox.ini, and used it in GitHub actions. 2024-10-09 09:27:33 +02:00