Formatting #1317
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: Formatting | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
'**' | |
schedule: | |
- cron: "0 0 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# formatting and basic install on cpu-only machine | |
formatting: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: environment | |
run: | | |
which python | |
python --version | |
- name: Install dependencies | |
run: | | |
grep -E "clang-format|pre-commit" requirements/requirements-dev.txt | xargs pip install | |
- name: Formatting checks | |
run: | | |
pre-commit run --all-files |