From 298e9cfeaa408873f340a75dc8b9e8decc8646a3 Mon Sep 17 00:00:00 2001 From: Norwid Behrnd Date: Fri, 8 May 2026 18:23:46 +0200 Subject: [PATCH 1/3] ci(pytest.yml): define perpetual pytest setup The previous setup was explicit about a specific release of the operating system and the Python interpreter. To be a quick initial check during the development, as well as one initial check on a pull request, it is seen more useful to call for the latest os runners of MacOS, Ubuntu, and Windows GitHub provides. These are each permutated with the latest release of a Python interpreter equally available to GitHub. Signed-off-by: Norwid Behrnd --- .github/workflows/pytest.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 81cdce0..97a157b 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -3,11 +3,12 @@ name: CI_pytest_appendfilename # name : pytest.yml # purpose : regularly run pytest on appendfilename # date : [2024-10-31 Thu] -# edit : [2025-05-07 Wed] +# edit : [2026-05-11 Mon] on: push: branches: + - main - master - dev pull_request: @@ -21,11 +22,12 @@ jobs: test: strategy: matrix: - # for a factorial test, an explicit selection of GitHUb runner images + # a factorial test which permutates the latest os runners with the most + # recent Python interpreter available, see # https://github.com/actions/runner-images?tab=readme-ov-file#available-images # state of commit 23478d3 as visited on 2025-05-07 Wed - os: [ubuntu-24.04, macos-15, windows-2025] - python-version: ["3.9", "3.13"] + os: [macos-latest, ubuntu-latest, windows-latest] + python-version: ["3.x"] runs-on: ${{ matrix.os }} timeout-minutes: 5 # Timeout for each job individually @@ -40,7 +42,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies with PyPI - run: pip install .[dev] + run: | + python -m pip install --upgrade pip + pip install . + pip install pytest - name: run the check by pytest run: | From c08c908ba346977d400ba151f25cab2492cfd7a9 Mon Sep 17 00:00:00 2001 From: Norwid Behrnd Date: Mon, 11 May 2026 12:50:12 +0200 Subject: [PATCH 2/3] ci(pytest.yml): update checkout and setup-python action According to the GitHub blog,[1] Node.js 20 actions now are deprecated. Thus, `actions/checkout@v4` is substituted by `actions/checkout@v5`, and `actions/setup-python@v5` by `actions/setup-python@v6`. [1] https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ Signed-off-by: Norwid Behrnd --- .github/workflows/pytest.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 97a157b..d8fee52 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -33,11 +33,9 @@ jobs: timeout-minutes: 5 # Timeout for each job individually steps: - - uses: actions/checkout@v4 - # by [2024-10-23 Wed], this version possibly will be considered "old", cf. - # https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ + - uses: actions/checkout@v5 - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} From 6e524ca72a875612a1996b1409161b53a41c27c4 Mon Sep 17 00:00:00 2001 From: Norwid Behrnd Date: Mon, 11 May 2026 12:57:49 +0200 Subject: [PATCH 3/3] style: move pytests and generation into folder `tests` Both file `test_generator.org` as well as its tangled `test_appendfilename.py` are moved into a dedicated folder for easier maintenance of the tests. Signed-off-by: Norwid Behrnd --- test_appendfilename.py => tests/test_appendfilename.py | 0 test_generator.org => tests/test_generator.org | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename test_appendfilename.py => tests/test_appendfilename.py (100%) mode change 100755 => 100644 rename test_generator.org => tests/test_generator.org (100%) mode change 100755 => 100644 diff --git a/test_appendfilename.py b/tests/test_appendfilename.py old mode 100755 new mode 100644 similarity index 100% rename from test_appendfilename.py rename to tests/test_appendfilename.py diff --git a/test_generator.org b/tests/test_generator.org old mode 100755 new mode 100644 similarity index 100% rename from test_generator.org rename to tests/test_generator.org