Skip to content

Commit 18a9023

Browse files
committed
Add GitHub workflow for Python checks
1 parent 6c26691 commit 18a9023

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Check
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- sveith/python-cleanup
8+
permissions:
9+
contents: read
10+
packages: read
11+
jobs:
12+
python-checks:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@a5ad31d6a139d249332a2605b85202e8c0b78450 # v2.19.1
17+
with:
18+
egress-policy: audit
19+
20+
- name: Check out repository
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
23+
- name: Install Python dev dependencies
24+
run: |
25+
pip3 install pipenv
26+
pipenv install --dev
27+
28+
- name: Run Python checks
29+
run: pipenv run -- invoke test

0 commit comments

Comments
 (0)