Matt Westcott
27b972d30f
Add support for Python 3.13
2024-10-11 16:10:07 +10:00
Daniel Black
93b9c04ce7
Update MySQL and MariaDB healthcheck commands for GitHub Actions
...
mysqladmin ping and mariadb-admin ping can return healthy during their
initialization stage as by default these connect over unix socket.
Add --protocol=tcp to mysqladmin to report healthy when a TCP
connection occurs. The initial startup uses --skip-networking.
MariaDB has a built-in healthcheck.sh in its container:
https://mariadb.com/kb/en/using-healthcheck-sh-script/
2024-09-13 11:22:47 +01:00
Sage Abdullah
2eb976a96b
Do not disable timezone when testing against MySQL
...
MySQL cannot load timezone-aware fixtures when USE_TZ = False.
2024-09-12 19:05:24 +01:00
Sage Abdullah
38b624d301
Disable parallel mode when testing against MariaDB
...
Not supported yet due to https://code.djangoproject.com/ticket/33537
2024-09-12 19:05:24 +01:00
Sage Abdullah
9914349a43
Add MariaDB to test matrix
...
Use the 10.11 LTS (2028-02-16) and 11.4 LTS (2029-05-29).
Also use the email user model and disable timezone for the 11.4
strategy.
2024-09-12 19:05:24 +01:00
Sage Abdullah
170487e0c5
Update MySQL test matrix
...
MySQL 8.1 has been EOL since 2023-10-25. Use the next LTS 8.4
(2032-04-30). Add MYSQL_ROOT_PASSWORD to ensure the root password
is set.
Also use email user model and disable timezone on the 8.4 strategy to
ensure we test these configurations with MySQL as well.
2024-09-12 19:05:24 +01:00
Matt Westcott
de2be5270e
Roll back codecov CI task to v3
...
As per #12303
2024-09-12 14:32:07 +01:00
Sage Abdullah
50b99c7643
Update GitHub Actions workflow configuration
2024-09-06 11:55:46 +01:00
Matt Westcott
05d40271ae
Test against psycopg 2 and 3
2024-08-29 18:04:06 +01:00
Matt Westcott
490acebcf5
Only patch number formatting functions if WAGTAIL_CHECK_TEMPLATE_NUMBER_FORMAT environment variable is set
...
The patch for filesizeformat in particular is quite heavyweight, and we don't want our CI to never test against the real version (for example, if it changes in a future Django release).
2024-08-27 14:15:34 +01:00
Matt Westcott
72b965cd94
Formalise support for Django 5.1
2024-08-12 11:26:44 +01:00
Matt Westcott
a8a29201c9
Drop support for Python 3.8
2024-07-23 10:12:45 +01:00
Matt Westcott
33967fc4fe
Specify postgres 15 for testing stable/5.1.x
2024-06-10 12:33:37 +01:00
Matt Westcott
1cfec331c9
Don't use fork of django-taggit, as fix is part of 5.0
2024-06-10 12:33:37 +01:00
Matt Westcott
e9d43b3b2f
Test against Django 5.1.x stable branch
...
Also bump some Python versions from 3.10 to 3.11 / 3.12
2024-06-10 12:33:37 +01:00
Matt Westcott
18005e7c06
Add check that fails loudly if versioned_static is called on application startup
2024-02-15 12:07:28 +00:00
zerolab
1be7fd5781
Formalise Django 5.0 support and drop Django < 4.2 support
...
Ref: https://docs.djangoproject.com/en/stable/releases/5.0/#third-party-library-support-for-older-version-of-django
2023-12-07 11:34:10 +00:00
Matt Westcott
605c9cf1a6
Drop support for Elasticsearch 5 and 6
2023-11-01 14:57:15 +00:00
Matt Westcott
d9c8d9fff3
Update CI database versions ( #10999 )
...
Rebuild of #10842
2023-10-05 14:44:28 +01:00
Matt Westcott
93064ee74c
Bump django-modelcluster to 6.1; no need to test Django 5.x against git main
2023-10-05 11:38:45 +01:00
Matt Westcott
bf0601bb42
Test against Django 5.0.x stable branch instead of 4.2.x
2023-10-05 11:38:45 +01:00
Matt Westcott
9c3032083b
Test against Python 3.12
2023-10-05 11:35:22 +01:00
Sage Abdullah
341d68c0b1
Use provisional django-taggit branch to test against Django main
...
Use own fork instead of their branch to ease updates later, in case
additional fixes are needed.
2023-09-27 16:59:01 +01:00
Matt Westcott
362b847ef5
Add test run on opensearch
2023-09-19 10:25:12 +01:00
Sage Abdullah
cf9c264875
Use strict editable mode when installing on GitHub Actions
2023-08-16 15:54:33 +01:00
Sage Abdullah
c9fd6b893f
Run tests in parallel in some of the GitHub Actions workflow setup
2023-08-02 15:31:58 +01:00
Sage Abdullah
6fed2c8c62
Generate coverage HTML report and upload as GitHub Actions artifact and summary
2023-08-02 14:48:57 +01:00
Sage Abdullah
19123cedc6
Bump actions@setup-python to v4 and add caching for pip
2023-08-02 14:45:54 +01:00
Matt Westcott
e364747bfa
Install elasticsearch-py v8 for testing against Elasticsearch 8
2023-07-17 16:18:37 +01:00
Matt Westcott
5e1b12ce32
Add Elasticsearch 8 to test matrix (but keep using the v7 python library, as a baseline test)
2023-07-17 16:18:37 +01:00
zerolab
adde8b66f6
Drop support for Python 3.7
2023-07-14 13:06:41 +01:00
Sage Abdullah
8bc31fc31c
Unpin django-taggit when testing against Django main
2023-06-12 14:35:41 +01:00
Sage Abdullah
5b20ae5f83
Use django-taggit fork to test against Django main
2023-04-21 11:51:30 +01:00
Matt Westcott
18e57574cb
Formalise support for Django 4.2
2023-04-03 17:14:29 +02:00
Sage Abdullah
4c4c88ace6
Add CAP_SYS_NICE to MySQL service config in GitHub Actions test workflow
2023-02-14 15:08:58 +00:00
Sage Abdullah
b17c72cf3d
Test Django main against django-modelcluster main branch
...
To be removed when a new release of django-modelcluster with the necessary fixes is out.
2023-02-10 14:41:58 +00:00
Matt Westcott
4f36562de7
Update Github actions to test against Django stable/4.2.x
2023-01-25 16:24:23 +00:00
Sage Abdullah
f1b30cc87c
Run Python tests with coverage and upload coverage data to codecov
2022-11-02 06:33:38 +10:00
Matt Westcott
7705b080a0
Add formal support for Python 3.11
2022-10-26 11:01:14 +01:00
Matt Westcott
55858c0dc0
Do not install django-rest-framework master when testing against Django main
...
This was added in 070b0bdfa4
to ensure https://github.com/encode/django-rest-framework/pull/8556 was in place, but this fix has now been released in django-rest-framework 3.14.
2022-10-19 16:48:29 +01:00
Alex
d0c0e2fc02
build: harden test.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 20:49:14 +10:00
Alex
b716a3baa6
build: harden codeql-analysis.yml permissions
...
Signed-off-by: Alex <aleksandrosansan@gmail.com>
2022-09-20 20:49:14 +10:00
Andy Chosak
722e292d63
Add testing against MySQL / Django 4.1.x
2022-08-06 21:54:32 +10:00
Matt Westcott
2a7b0f6328
Test against postgres 11 as standard
2022-08-04 13:52:33 +02:00
Matt Westcott
d4837edef9
Formalise support for Django 4.1
2022-08-04 13:52:33 +02:00
Matt Westcott
070b0bdfa4
Test Django main against git master of django-rest-framework
...
Running against Django 4.2(dev) requires the fix https://github.com/encode/django-rest-framework/pull/8556
2022-07-14 18:07:39 +01:00
Matt Westcott
a0de60b1ea
Test against Django stable/4.1.x branch ( #8774 )
...
* Test against Django stable/4.1.x branch
* Use postgres 12 for stable/4.1.x
2022-06-29 10:18:41 +01:00
Sage Abdullah
93c9103d8a
Use PostgreSQL 12 when testing against Django main
2022-05-20 12:18:20 +01:00
sage
bb2c826cbc
Use PostgreSQL 11 when testing against Django main ( #8489 )
...
Django dropped support for PostgreSQL 10 as of Django 4.1
2022-05-05 10:47:38 +01:00
Matt Westcott
5b4242df3c
Fix test migrations for django-taggit 3.0.0 ( #8451 )
...
* Fix test migrations for django-taggit 3.0.0 (forthcoming)
The next release of django-taggit [will change slugs to allow_unicode=True](https://github.com/jazzband/django-taggit/pull/797 ), which breaks our check for missing migrations.
This change is not released yet, but the fix is needed now so that we can run against django-taggit git master for our tests against Django main. It's also dependent on the version bump happening at the django-taggit end: https://github.com/jazzband/django-taggit/pull/800
* Allow django-taggit 3.x as a dependency and drop special case when testing against Django main
2022-05-02 14:47:48 +01:00