mirror of
https://github.com/novoid/appendfilename.git
synced 2026-06-14 04:11:19 +00:00
Merge pull request #27 from nbehrnd/dev
update checks by pytest with most recent OS runners and Python interpreter
This commit is contained in:
commit
ee4f2d9a1d
3 changed files with 12 additions and 9 deletions
21
.github/workflows/pytest.yml
vendored
21
.github/workflows/pytest.yml
vendored
|
|
@ -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,26 +22,28 @@ 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
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v5
|
||||||
# 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
|
- uses: actions/setup-python@v6
|
||||||
with:
|
with:
|
||||||
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: |
|
||||||
|
|
|
||||||
0
test_appendfilename.py → tests/test_appendfilename.py
Executable file → Normal file
0
test_appendfilename.py → tests/test_appendfilename.py
Executable file → Normal file
0
test_generator.org → tests/test_generator.org
Executable file → Normal file
0
test_generator.org → tests/test_generator.org
Executable file → Normal file
Loading…
Reference in a new issue