Fix PriorAcquisitionFunction #1045
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: pre-commit | |
on: | |
# Manually triggerable in GitHub | |
workflow_dispatch: | |
# When a push occurs on either of these branches | |
push: | |
branches: | |
- main | |
- development | |
# When a push occurs on a PR that targets these branches | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- ready_for_review | |
branches: | |
- main | |
- development | |
jobs: | |
run-all-files: | |
if : ${{ !github.event.pull_request.draft }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit install | |
pip install pylint | |
- name: Run pre-commit | |
run: | | |
pre-commit run --all-files |