Skip to content

Update CI, apply harden-runner audit. #24

Update CI, apply harden-runner audit.

Update CI, apply harden-runner audit. #24

Workflow file for this run

---
name: CI
on:
push:
branches: [trunk]
tags: ["*"]
pull_request:
branches: [trunk]
workflow_dispatch:
env:
FORCE_COLOR: "1"
PIP_DISABLE_VERSION_CHECK: "1"
permissions:
contents: read
jobs:
tests:
name: nox on ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@128a63446a954579617e875aaab7d2978154e969 # v2.4.0
with:
egress-policy: audit
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: "Install dependencies"
run: |
python -VV
python -Im site
python -Im pip install --upgrade pip setuptools wheel
python -Im pip install --upgrade nox
python -Im nox --version
- name: "Run CI suite with nox"
run: "python -Im nox --non-interactive --error-on-external-run --python ${{ matrix.python-version }}"