Skip to content

Add GitHub workflow for Python checks #1

Add GitHub workflow for Python checks

Add GitHub workflow for Python checks #1

Workflow file for this run

name: Check
on:
pull_request:
push:
branches:
- main
- sveith/python-cleanup
permissions:
contents: read
packages: read
jobs:
python-checks:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
with:
egress-policy: audit
- name: Check out repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Python dev dependencies
run: |
apt-get update && apt-get install -y pipenv
pipenv install --dev
- name: Run Python checks
run: pipenv run -- invoke test