Skip to content

Create python-publish.yml #2

Create python-publish.yml

Create python-publish.yml #2

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pre-Commit
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
pre-commit:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Runs pre-commit
run: |
pip install pre-commit
pre-commit run -a