appendfilename/.github/workflows/pytest.yml
Norwid Behrnd c08c908ba3
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 <nbehrnd@yahoo.com>
2026-05-11 12:50:16 +02:00

56 lines
1.5 KiB
YAML

name: CI_pytest_appendfilename
# name : pytest.yml
# purpose : regularly run pytest on appendfilename
# date : [2024-10-31 Thu]
# edit : [2026-05-11 Mon]
on:
push:
branches:
- main
- master
- dev
pull_request:
branches:
- master
workflow_dispatch: # provide a manual trigger
# schedule:
# - cron: "0 0 1 * *" # once each 1st of a month, at 00:00 UTC (cf. https://crontab.guru/)
jobs:
test:
strategy:
matrix:
# 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: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.x"]
runs-on: ${{ matrix.os }}
timeout-minutes: 5 # Timeout for each job individually
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies with PyPI
run: |
python -m pip install --upgrade pip
pip install .
pip install pytest
- name: run the check by pytest
run: |
echo "default"
python -m pytest -m "default"
echo "prepend"
python -m pytest -m "prepend"
echo "smart_prepend"
python -m pytest -m "smart_prepend"