Skip to content

Bump step-security/harden-runner from 2.17.0 to 2.18.0 #1172

Bump step-security/harden-runner from 2.17.0 to 2.18.0

Bump step-security/harden-runner from 2.17.0 to 2.18.0 #1172

Workflow file for this run

name: Python tests
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- { VERSION: "3.9", TOXENV: "py39", ALLOW_FAILURE: false }
- { VERSION: "3.10", TOXENV: "py310", ALLOW_FAILURE: false }
- { VERSION: "3.11", TOXENV: "py311", ALLOW_FAILURE: false }
- { VERSION: "3.12", TOXENV: "py312", ALLOW_FAILURE: false }
- { VERSION: "3.13", TOXENV: "py313", ALLOW_FAILURE: false }
- {
VERSION: "3.13",
TOXENV: "flake8,doclint,docs,commitlint",
ALLOW_FAILURE: false,
}
- { VERSION: "3.13", TOXENV: "docstrings", ALLOW_FAILURE: true }
- { VERSION: "pypy3.9", TOXENV: "pypy", ALLOW_FAILURE: false }
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
with:
egress-policy: audit
- name: Check out the repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.PYTHON.VERSION }}
- name: Upgrade pip
run: |
pip install pip
pip --version
- name: Install Tox
run: |
pip install tox
tox --version
- name: Run Tox
run: tox
env:
TOXENV: ${{ matrix.PYTHON.TOXENV }}
GH_RECORD_MODE: "none"
continue-on-error: ${{ matrix.PYTHON.ALLOW_FAILURE }}