Skip to content

chore(ci): call the shared reviewer instead of a local copy #110

chore(ci): call the shared reviewer instead of a local copy

chore(ci): call the shared reviewer instead of a local copy #110

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags-ignore: ['v*']
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
security-scan:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
fetch-depth: 0
persist-credentials: false
- name: Pipelock Scan
uses: luckyPipewrench/pipelock@9d2e37d296359c38e599525a0424cdc189a812e1 # v3.0.0
with:
scan-diff: 'true'
fail-on-findings: 'true'
test-vectors: 'false'
exclude-paths: |
tests/conformance/
test:
needs: [security-scan]
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python-version }}
- name: Install locked CI dependencies
run: python -m pip install --require-hashes -r requirements/ci.txt
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: pytest --cov=pipelock_verify --cov-report=term-missing
lint:
needs: [security-scan]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.12'
- name: Install locked CI dependencies
run: python -m pip install --require-hashes -r requirements/ci.txt
- name: Ruff lint
run: ruff check pipelock_verify tests fuzz scripts
- name: Ruff format check
run: ruff format --check pipelock_verify tests fuzz scripts
typecheck:
needs: [security-scan]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: '3.12'
- name: Install locked CI dependencies
run: python -m pip install --require-hashes -r requirements/ci.txt
- name: Mypy strict
run: mypy pipelock_verify