From 67032d84d4b9672f8f5ccbecbc722d88cc8c0159 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Fri, 2 Aug 2024 16:34:57 +0200 Subject: [PATCH 1/2] Bugfix CI: Add "*.snapshot.json" files ;) --- .gitignore | 2 ++ README.md | 1 + ...test_command_import_import_1.snapshot.json | 32 +++++++++++++++++++ ..._gpx_create_add_from_files_1.snapshot.json | 32 +++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 for_runners/tests/test_command_import_import_1.snapshot.json create mode 100644 for_runners/tests/test_services_gpx_create_add_from_files_1.snapshot.json diff --git a/.gitignore b/.gitignore index 2b54f88..e886297 100644 --- a/.gitignore +++ b/.gitignore @@ -24,8 +24,10 @@ __pycache__ *.sqlite3 *.json + # Include "ignored" *.json: !**/fixtures/*.json +!*.snapshot.json # Django secret.txt diff --git a/README.md b/README.md index ecbc432..9d5150d 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,7 @@ Because this is a project and not really a reuse-able-app ;) [comment]: <> (✂✂✂ auto generated history start ✂✂✂) * [v0.18.0.dev1](https://github.com/jedie/django-for-runners/compare/v0.17.4...v0.18.0.dev1) + * 2024-08-02 - Bugfix CI: Add "*.snapshot.json" files ;) * 2024-08-02 - Add https://pre-commit.com hook * 2024-08-02 - Replace "safety" by "pip-audit" * 2024-08-01 - Replace metaweather.com with open-meteo.com diff --git a/for_runners/tests/test_command_import_import_1.snapshot.json b/for_runners/tests/test_command_import_import_1.snapshot.json new file mode 100644 index 0000000..a35a0cf --- /dev/null +++ b/for_runners/tests/test_command_import_import_1.snapshot.json @@ -0,0 +1,32 @@ +[ + { + "dt": "2024-07-21T14:30:24+01:00", + "latitude": 51.05254, + "longitude": 2.444563 + }, + { + "dt": "2024-07-21T21:28:31+01:00", + "latitude": 50.944859, + "longitude": 1.8479 + }, + { + "dt": "2018-02-21T14:30:50+00:00", + "latitude": 51.437889290973544, + "longitude": 6.617012657225132 + }, + { + "dt": "2018-02-21T14:30:52+00:00", + "latitude": 51.437847297638655, + "longitude": 6.6170057002455 + }, + { + "dt": "2011-01-13T01:01:01+00:00", + "latitude": 52.518611, + "longitude": 13.376111 + }, + { + "dt": "2011-01-15T23:59:01+00:00", + "latitude": 46.9466, + "longitude": 7.44412 + } +] \ No newline at end of file diff --git a/for_runners/tests/test_services_gpx_create_add_from_files_1.snapshot.json b/for_runners/tests/test_services_gpx_create_add_from_files_1.snapshot.json new file mode 100644 index 0000000..a35a0cf --- /dev/null +++ b/for_runners/tests/test_services_gpx_create_add_from_files_1.snapshot.json @@ -0,0 +1,32 @@ +[ + { + "dt": "2024-07-21T14:30:24+01:00", + "latitude": 51.05254, + "longitude": 2.444563 + }, + { + "dt": "2024-07-21T21:28:31+01:00", + "latitude": 50.944859, + "longitude": 1.8479 + }, + { + "dt": "2018-02-21T14:30:50+00:00", + "latitude": 51.437889290973544, + "longitude": 6.617012657225132 + }, + { + "dt": "2018-02-21T14:30:52+00:00", + "latitude": 51.437847297638655, + "longitude": 6.6170057002455 + }, + { + "dt": "2011-01-13T01:01:01+00:00", + "latitude": 52.518611, + "longitude": 13.376111 + }, + { + "dt": "2011-01-15T23:59:01+00:00", + "latitude": 46.9466, + "longitude": 7.44412 + } +] \ No newline at end of file From a354a81feaff46ab0fcb259a7af2f4bfc8c5ee61 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Fri, 2 Aug 2024 16:36:07 +0200 Subject: [PATCH 2/2] Expand test matrix with 3.12 and remove 3.9 support --- .github/workflows/tests.yml | 2 +- README.md | 1 + pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a08b46..112b8fd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.11", "3.10", "3.9"] + python-version: ["3.12", "3.11", "3.10"] steps: - name: Checkout run: | diff --git a/README.md b/README.md index 9d5150d..9c29cc0 100644 --- a/README.md +++ b/README.md @@ -222,6 +222,7 @@ Because this is a project and not really a reuse-able-app ;) [comment]: <> (✂✂✂ auto generated history start ✂✂✂) * [v0.18.0.dev1](https://github.com/jedie/django-for-runners/compare/v0.17.4...v0.18.0.dev1) + * 2024-08-02 - Expand test matrix with 3.12 and remove 3.9 support * 2024-08-02 - Bugfix CI: Add "*.snapshot.json" files ;) * 2024-08-02 - Add https://pre-commit.com hook * 2024-08-02 - Replace "safety" by "pip-audit" diff --git a/pyproject.toml b/pyproject.toml index 5bd80b4..33ee8e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -175,7 +175,7 @@ exclude_lines = [ legacy_tox_ini = """ [tox] isolated_build = True -envlist = py{311,310,39} +envlist = py{312,311,310} skip_missing_interpreters = True [testenv]