Skip to content

[pre-commit.ci] pre-commit autoupdate #270

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #270

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:
fail-fast: false
matrix:
runner:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
# Each operating system should test all Python interpreters simultaneously.
#
# Note: The CPython interpreter versions should be in ascending order
# because the last-listed version will be the default CPython version.
#
include:
- cpythons:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
cpython-beta: "3.14"
pypys:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
uses: "kurtmckee/github-workflows/.github/workflows/tox.yaml@ca26472ada33aa277527450aa46436f530e3d2c1" # v1.4
with:
config: "${{ toJSON(matrix) }}"
inputs:
name: "Inputs (${{ matrix.os.name }})"
strategy:
fail-fast: false
matrix:
os:
- name: "Linux"
runner: "ubuntu-latest"
- name: "macOS"
runner: "macos-latest"
- name: "Windows"
runner: "windows-latest"
runs-on: "${{ matrix.os.runner }}"
steps:
- name: "Checkout the repository"
uses: "actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683" # v4.2.2
- 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