Generate RestJson event stream implementation #1156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint code | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python for linting - 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Initialize Pants | |
uses: pantsbuild/actions/init-pants@main | |
with: | |
# v0 makes it easy to bust the cache if needed | |
# just increase the integer to start with a fresh cache | |
gha-cache-key: v0 | |
named-caches-hash: ${{ hashFiles('python-default.lock') }} | |
pants-ci-config: pants.ci.toml | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |