appendfilename/.github/workflows/pytest.yml
Norwid Behrnd 579ce63756 build: reorganize project dependencies with a .toml file
The dependencies of the project -- either use (default), or
further development (`dev`) -- are managed by a pyproject.toml
file.

Signed-off-by: Norwid Behrnd <nbehrnd@yahoo.com>
2025-05-07 18:05:39 +02:00

53 lines
1.5 KiB
YAML

name: CI_pytest_appendfilename
# name : pytest.yml
# purpose : regularly run pytest on appendfilename
# date : [2024-10-31 Thu]
# edit : [2025-05-07 Wed]
on:
push:
branches:
- 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:
# for a factorial test, an explicit selection of GitHUb runner images
# 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"]
runs-on: ${{ matrix.os }}
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/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies with PyPI
run: pip install .[dev]
- 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"