Test MNE can read our exports #17
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: Format Check | |
on: | |
# because we rely on ReviewDog to trigger failure, there's no reason to run on anything | |
pull_request: | |
paths: | |
- "**/*.jl" | |
- ".github/workflows/FormatCheck.yml" | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
format-check: | |
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
version: | |
- "1.9" | |
os: | |
- ubuntu-latest | |
arch: | |
- x64 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: julia-actions/setup-julia@v1 | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- uses: julia-actions/cache@v1 | |
with: | |
cache-name: "${{ github.workflow }}-${{ github.job }}-${{ matrix.pkg.name }}-${{ matrix.version }}-${{ matrix.os }}-${{ matrix.arch }}" | |
cache-compiled: true | |
- name: Instantiate `format` environment and format | |
run: | | |
julia --project=format -e 'using Pkg; Pkg.instantiate()' | |
julia --project=format 'format/run.jl' | |
- uses: reviewdog/action-suggester@v1 | |
with: | |
tool_name: JuliaFormatter | |
fail_on_error: true |