Skip to content

Pins GH actions

Pins GH actions #202

name: Linting Python custom files
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up Python
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1.4.1
- name: Install dependencies
run: |
touch README-PYPI.md
poetry install --all-extras
# The init, sdkhooks.py and types.py files in the _hooks folders are generated by Speakeasy hence the exclusion
- name: Run all linters
run: scripts/lint_custom_code.sh