mbox series

[error-report-web,0/5] Add GitHub Actions CI and run tests with Docker

Message ID 20261018014510.72203-1-tim.orling@konsulko.com
Headers show
Series Add GitHub Actions CI and run tests with Docker | expand

Message

Tim Orling Oct. 18, 2026, 1:43 a.m. UTC
Add .github/workflows/ci.yml and run tests with docker/run-tests.sh script.
This has been run on https://github.com/moto-timo/error-report-web master-next branch.

Tim Orling (5):
  Use django.test.TestCase so tests run against a test database.
  Add docker/run-tests.sh to run the tests in a container.
  Add a GitHub Actions workflow to run the tests.
  Port culldb and purge.py to Python 3.
  Add a ruff lint job to CI and fix its findings.

 .dockerignore                      | 10 ++++++
 .github/workflows/ci.yml           | 31 +++++++++++++++++++
 .gitignore                         |  1 +
 Post/createStatistics.py           |  6 ++--
 Post/management/commands/culldb.py | 36 +++++++++-------------
 Post/models.py                     |  4 +--
 Post/parser.py                     |  5 +--
 Post/purge.py                      |  4 +--
 Post/templatetags/projecttags.py   |  4 ---
 Post/test.py                       | 49 ++++++++++++++++++++++++------
 Post/views.py                      | 10 +++---
 docker/run-tests.sh                | 32 +++++++++++++++++++
 project/settings.py.docker         |  2 +-
 ruff.toml                          |  5 +++
 test-data/test-send-error.py       |  4 ++-
 15 files changed, 149 insertions(+), 54 deletions(-)
 create mode 100644 .dockerignore
 create mode 100644 .github/workflows/ci.yml
 create mode 100755 docker/run-tests.sh
 create mode 100644 ruff.toml


base-commit: 752b7188d04c2fd0e2f32f0cd2dd437c43058d82