Files
chia-blockchain/.github/workflows/pre-commit.yml
T
Kyle Altendorf e7089064eb make pre-commit mypy run use regular venv (via activated shim) (#12077)
* make pre-commit mypy run use regular venv (via activated shim)

* & not Invoke-Expression

* Update activated.ps1

* install for pre-commit

* Update activated.sh

* Update .pre-commit-config.yaml
2022-07-06 11:40:06 -04:00

26 lines
700 B
YAML

name: pre-commit
on:
pull_request:
push:
branches:
- 'long_lived/**'
- main
- 'release/**'
concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/long_lived/')) && github.sha || '' }}
cancel-in-progress: true
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Run install script
run: |
sh install.sh -d
- uses: pre-commit/action@v2.0.3