Skip to content

Update pre-commit hooks version #41

Update pre-commit hooks version

Update pre-commit hooks version #41

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: julia-actions/setup-julia@v1
- uses: julia-actions/cache@v1
- name: Install JuliaFormatter
# 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: |
using Pkg
Pkg.add("JuliaFormatter")
shell: julia --color=yes {0}
- uses: pre-commit/[email protected]
with:
extra_args: "" # do not run on all files
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version:
- 1
arch:
- x64
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
annotate: true
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v3
with:
files: lcov.info
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}