Skip to content

Commit

Permalink
Add ts approved workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vebop committed Oct 30, 2024
1 parent 6215c83 commit c0b3cff
Showing 1 changed file with 4 additions and 31 deletions.
35 changes: 4 additions & 31 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
name: Python CI
name: lint

env:
PYTHON_VERSION: "3.12" # Default Python version

"on":
merge_group: {}
pull_request: {}
push:
branches-ignore:
# These should always correspond to pull requests, so ignore them for
# the push trigger and let them be triggered by the pull_request
# trigger, avoiding running the workflow twice. This is a minor
# optimization so there's no need to ensure this is comprehensive.
- "dependabot/**"
- "renovate/**"
- "tickets/**"
- "u/**"
on: push

jobs:

lint:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Run pre-commit
uses: pre-commit/[email protected]
call-workflow:
uses: lsst-ts/tssw_workflows/.github/workflows/lint.yaml@main

0 comments on commit c0b3cff

Please sign in to comment.