-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 924 Bytes
/
pre-commit.yml
File metadata and controls
43 lines (35 loc) · 924 Bytes
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
name: pre-commit
on:
push:
branches-ignore:
- main
jobs:
pre-commit:
runs-on: ubuntu-latest
container:
image: python:3.11-bullseye
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Mark workspace as safe for git
run: |
export HOME=/github/home
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Install system dependencies
run: |
apt-get update
apt-get install -y \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-dev \
libcups2 \
libdbus-1-dev \
libgbm1 \
libgtk-3-0 \
libimage-exiftool-perl \
libnss3 \
xvfb
- name: Install pre-commit
run: pip3 install pre-commit
- name: Run pre-commit
run: pre-commit run --all-files