-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.06 KB
/
validate-python.yml
File metadata and controls
34 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Validate - Pre-Commit
on:
workflow_call:
inputs:
python-version:
description: "The Python version the workflow should run"
default: "3.11"
required: false
type: string
poetry-version:
description: "The Poetry version the workflow should run"
default: "1.4.2"
required: false
type: string
jobs:
pre-commit:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5.6.0
with:
python-version: ${{ inputs.python-version }}
- uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0
with:
poetry-version: ${{ inputs.poetry-version }}
- name: Install with Poetry
run: poetry install
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1
- name: Run Python tests
run: poetry run pytest --full-trace