From ae7e53d5fd66e92ac5967bc20936cab7010d7c72 Mon Sep 17 00:00:00 2001 From: Zachery Crandall Date: Tue, 1 Jul 2025 17:11:47 -0600 Subject: [PATCH] Add configurable input options to Python tox unit testing workflow --- .../python_unit_testing_tox_main.yml | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python_unit_testing_tox_main.yml b/.github/workflows/python_unit_testing_tox_main.yml index dd26cfe..8206362 100644 --- a/.github/workflows/python_unit_testing_tox_main.yml +++ b/.github/workflows/python_unit_testing_tox_main.yml @@ -1,27 +1,26 @@ -name: Unit Testing +name: Python Unit Testing via Tox on: workflow_call: - + inputs: + python: + required: false + type: string + default: "3.10" + platform: + required: false + type: string + default: "ubuntu-latest" jobs: test: - strategy: - matrix: - python: - - "3.9" # oldest Python supported by PSF - - "3.11" # newest Python that is stable - platform: - - ubuntu-latest - # - macos-latest - - windows-latest - runs-on: ${{ matrix.platform }} + runs-on: ${{ inputs.platform }} steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python }} + python-version: ${{ inputs.python }} - name: Install dependencies run: |