Skip to content

Bump actions/setup-python from 5 to 6 #47

Bump actions/setup-python from 5 to 6

Bump actions/setup-python from 5 to 6 #47

Workflow file for this run

name: PR Pre-Commit Bot
env:
JULIA_NUM_THREADS: 2
concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the master branch we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ (github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main') || github.run_number }}
# Cancel intermediate builds, but only if it is a pull request build.
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
#on:
# pull_request:
# branches: ["master", "main"]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
- name: Setup Julia
uses: julia-actions/setup-julia@v2
with:
version: '1'
- uses: julia-actions/cache@v2
- name: Setup JuliaFormatter
run: |
julia -e '
using Pkg
Pkg.add(name="JuliaFormatter", version="1.0.62")'
- name: Setup Python
uses: actions/setup-python@v6
- name: Run pre-commit
uses: pre-commit/[email protected]
continue-on-error: true
- name: Potentially commit changes
uses: stefanzweifel/git-auto-commit-action@v6
with:
commit_message: linter bot commit -- feel free to overwrite