Skip to content

Add GitHub Actions CI and run tests with Docker

Tim Orling yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Use django.test.TestCase so tests run against a test database.Post/test.py+6 -90 replies
2/5Add docker/run-tests.sh to run the tests in a container..dockerignore .gitignore docker/run-tests.sh +1 more+44 -10 replies
3/5Add a GitHub Actions workflow to run the tests..github/workflows/ci.yml+22 -00 replies
4/5Port culldb and purge.py to Python 3.Post/management/commands/culldb.py Post/purge.py Post/test.py+37 -220 replies
5/5Add a ruff lint job to CI and fix its findings..github/workflows/ci.yml Post/createStatistics.py Post/models.py +7 more+40 -220 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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

Signature · 1 line
2.56.0