-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (35 loc) · 1.04 KB
/
pre-commit.yaml
File metadata and controls
45 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
push:
branches: [main, devel]
pull_request:
name: pre-commit.yaml
permissions: read-all
jobs:
pre-commit:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install Rcpp
run: Rscript -e 'install.packages("Rcpp")'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install --yes clang-format clang-tidy
- name: Install Air
uses: posit-dev/setup-air@v1
- name: Install Jarl
run: |
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/etiennebacher/jarl/releases/latest/download/jarl-installer.sh | sh
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files --show-diff-on-failure