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 <nbehrnd@yahoo.com>
This commit is contained in:
Norwid Behrnd 2026-05-08 18:23:46 +02:00
parent 0cacfb7c4e
commit 298e9cfeaa
No known key found for this signature in database

View file

@ -3,11 +3,12 @@ name: CI_pytest_appendfilename
# name : pytest.yml # name : pytest.yml
# purpose : regularly run pytest on appendfilename # purpose : regularly run pytest on appendfilename
# date : [2024-10-31 Thu] # date : [2024-10-31 Thu]
# edit : [2025-05-07 Wed] # edit : [2026-05-11 Mon]
on: on:
push: push:
branches: branches:
- main
- master - master
- dev - dev
pull_request: pull_request:
@ -21,11 +22,12 @@ jobs:
test: test:
strategy: strategy:
matrix: 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 # https://github.com/actions/runner-images?tab=readme-ov-file#available-images
# state of commit 23478d3 as visited on 2025-05-07 Wed # state of commit 23478d3 as visited on 2025-05-07 Wed
os: [ubuntu-24.04, macos-15, windows-2025] os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.9", "3.13"] python-version: ["3.x"]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 5 # Timeout for each job individually timeout-minutes: 5 # Timeout for each job individually
@ -40,7 +42,10 @@ jobs:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: Install dependencies with PyPI - 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 - name: run the check by pytest
run: | run: |