[go: up one dir, main page]

Skip to content

[StepSecurity] ci: Harden GitHub Actions (#1) #9

[StepSecurity] ci: Harden GitHub Actions (#1)

[StepSecurity] ci: Harden GitHub Actions (#1) #9

Workflow file for this run

name: Test
on:
pull_request:
paths:
- ".github/workflows/test.yml"
- "**.py"
push:
paths:
- ".github/workflows/test.yml"
- "**.py"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.python_version }}
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [Ubuntu, Windows, macOS]
python_version:
["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9", "pypy3.10"]
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
name: Install Python ${{ matrix.python_version }}
with:
python-version: ${{ matrix.python_version }}
cache: "pip"
allow-prereleases: true
- name: Run nox
run: pipx run nox --error-on-missing-interpreters -s tests-${{ matrix.python_version }}