Update workflows to match aeon improvements #94
Workflow file for this run
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: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
schedule: | |
# every day at 1:30 AM UTC | |
- cron: "30 1 * * *" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- uses: tj-actions/[email protected] | |
id: changed-files | |
- if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'full pre-commit') }} | |
name: Full pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --all-files | |
- if: ${{ github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'full pre-commit') }} | |
name: Local pre-commit | |
uses: pre-commit/[email protected] | |
with: | |
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }} | |
- if: ${{ failure() && github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | |
uses: pre-commit-ci/[email protected] |