Skip to content

Make max_points_per_cell work with templates (#76) #346

Make max_points_per_cell work with templates (#76)

Make max_points_per_cell work with templates (#76) #346

Workflow file for this run

name: Format Check
on:
push:
branches:
- 'main'
tags: '*'
pull_request:
jobs:
check-format:
name: Check format with JuliaFormatter.jl
runs-on: ubuntu-latest
steps:
- name: Check out project
uses: actions/checkout@v4
- name: Set up Julia
uses: julia-actions/setup-julia@v2
with:
version: '1'
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- uses: julia-actions/cache@v2
- name: Install JuliaFormatter and format
# This will use the latest version by default but you can set the version like so:
#
# julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version = "0.13.0"))'
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.62"))'
julia -e 'using JuliaFormatter; format(".")'
- name: Format check
run: |
julia -e '
out = Cmd(`git diff --name-only`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!"
write(stdout, out)
exit(1)
end'