pass variables through better

This commit is contained in:
Erica Portnoy 2026-04-16 17:16:42 -07:00
parent b28ff064e1
commit 6422ce5cca
4 changed files with 12 additions and 2 deletions

View file

@ -16,7 +16,7 @@ runs:
using: composite
steps:
- name: Create test farm pem file
if: contains(matrix.TOXENV, 'test-farm')
if: contains(inputs.TOXENV, 'test-farm')
env:
PEM_CONTENTS: "${{ inputs.AWS_TEST_FARM_PEM }}"
run: |-

View file

@ -5,6 +5,9 @@ inputs:
description: 'Contents of keyfile for AWS'
AWS_EC2_PEM_FILE:
description: 'Location of keyfile for AWS'
PYTHON_VERSION:
description: 'Python version to run tests with'
required: true
runs:
using: composite
@ -31,7 +34,7 @@ runs:
shell: bash
- uses: actions/setup-python@v6.2.0
with:
python-version: "${{ matrix.PYTHON_VERSION }}"
python-version: "${{ inputs.PYTHON_VERSION }}"
- name: Install runtime dependencies
run: |-
set -e

View file

@ -50,6 +50,8 @@ jobs:
uses: actions/checkout@v6.0.2
- name: Setup tox
uses: "./.github/actions/setup_tox"
with:
PYTHON_VERSION: "${{ matrix.PYTHON_VERSION }}"
- name: Run tox
uses: "./.github/actions/run_tox"
env:

View file

@ -46,8 +46,13 @@ jobs:
uses: actions/checkout@v6.0.2
- name: Setup tox
uses: "./.github/actions/setup_tox"
with:
PYTHON_VERSION: "${{ matrix.PYTHON_VERSION }}"
- name: Run tox
uses: "./.github/actions/run_tox"
with:
PIP_USE_PEP517: "${{ matrix.PIP_USE_PEP517 }}"
TOXENV: "${{ matrix.TOXENV }}"
- name: Upload coverage
uses: "./.github/actions/upload_coverage"
test_sphinx_builds: