From 207c80563cfcdd51ab1c8dda104eb0b8597b5d2a Mon Sep 17 00:00:00 2001 From: Norwid Behrnd Date: Wed, 13 May 2026 17:44:59 +0200 Subject: [PATCH] ci(tox.yml): add tox moderated pytest check p310...py314 To prove appendfile's work, checks by pytest can be run on GitHub's os runners of macos, ubuntu, windows in permutation of Python interpreters Py 3.10...3.14 (if available). Signed-off-by: Norwid Behrnd --- .github/workflows/tox.yml | 39 +++++++++++++++++++++++++++++++++++++++ tox.ini | 11 +++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/tox.yml create mode 100644 tox.ini diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml new file mode 100644 index 0000000..da706d5 --- /dev/null +++ b/.github/workflows/tox.yml @@ -0,0 +1,39 @@ +name: CI_tox_appendfilename + +# name : tox.yml +# purpose : run pytest on appendfilename +# date : [2026-05-13 Wed] +# edit : + +on: + workflow_dispatch: # the manual trigger + # push: + # branches: [ dev, main ] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest, windows-latest] + python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] + + steps: + - uses: actions/checkout@v5 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python-version }} + + - name: Install tox + run: | + python -m pip install --upgrade pip + pip install . + pip install pytest + pip install tox tox-gh-actions + pip list + + - name: run tox' jobs (which GitHub happens to split in separate jobs) + run: tox + diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..349f964 --- /dev/null +++ b/tox.ini @@ -0,0 +1,11 @@ +[tox] +envlist = py310, py311, py312, py313, py314 +isolated_build = True +ignore_missing_interpreters = True + +[testenv] +deps = + pytest +commands = + pytest +