Skip to content

Merge pull request #40 from kurtmckee/rm-isolated-build #225

Merge pull request #40 from kurtmckee/rm-isolated-build

Merge pull request #40 from kurtmckee/rm-isolated-build #225

Workflow file for this run

name: "🔬 Test"
on:
pull_request: null
push:
branches:
- "main"
- "releases"
jobs:
code:
name:
"Code (${{
(startswith(matrix.runner, 'ubuntu') && 'Linux')
|| (startswith(matrix.runner, 'macos') && 'macOS')
|| (startswith(matrix.runner, 'windows') && 'Windows')
}})"
strategy:
matrix:
runner:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
# Each operating system should test all Python interpreters simultaneously.
# This nested-list syntax accomplishes that goal
# without creating cross-products of every possible OS and interpreter.
#
# Note: The CPython interpreter versions should be in ascending order
# because the last-listed version will be the default CPython version.
#
cpythons:
- - "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
cpython-beta:
- "3.13"
pypys:
- - "3.8"
- "3.9"
- "3.10"
fail-fast: false
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@73024397dba10c866931a1d26cc2a0e7d223472f" # v0.2
with:
config: "${{ toJSON(matrix) }}"
inputs:
name: "Inputs (${{ matrix.os.name }})"
strategy:
matrix:
os:
- name: "Linux"
runner: "ubuntu-latest"
- name: "macOS"
runner: "macos-latest"
- name: "Windows"
runner: "windows-latest"
fail-fast: false
runs-on: "${{ matrix.os.runner }}"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332" # v4.1.7
- name: "Test: Disable output file"
uses: "./"
with:
identifiers-filename: ""
- name: "Verify: Disable output file"
shell: "bash"
run: |
if [[ -e .python-identifiers ]]; then
exit 1
fi
- name: "Test: Default output filename"
uses: "./"
- name: "Verify: Default output filename"
shell: "bash"
run: |
if [[ ! -e .python-identifiers ]]; then
exit 1
else
rm ".python-identifiers"
fi
- name: "Test: Custom output filename"
uses: "./"
with:
identifiers-filename: "favored-filename.txt"
- name: "Verify: Custom output filename"
shell: "bash"
run: |
if [[ ! -e "favored-filename.txt" ]]; then
exit 1
else
rm "favored-filename.txt"
fi