Merge pull request #52 from lsst-ts/tickets/DM-46917 #425
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 | |
on: | |
- push | |
- pull_request | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Install | |
run: | | |
$CONDA/bin/conda install python=3.11 | |
$CONDA/bin/conda install -c lsstts -y ts-pre-commit-config">=0.9.2" | |
$CONDA/bin/conda install -c conda-forge pre-commit -y | |
$CONDA/bin/generate_pre_commit_conf --skip-pre-commit-install | |
- name: Run pre commit checks | |
run: $CONDA/bin/pre-commit run --all |