-
-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (27 loc) · 758 Bytes
/
pre-commit.yml
File metadata and controls
31 lines (27 loc) · 758 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
name: Run checks
on:
pull_request:
branches: [main]
jobs:
checks:
runs-on: ubuntu-latest
env:
COMPOSE_PROGRESS: plain
steps:
- uses: actions/checkout@v6
- name: install python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: build docker containers
run: |
echo "" > .envrc
echo CONFIG_PATH=data/config/openfoodfacts.yml >> .envrc
echo OFF_API_URL=https://world.openfoodfacts.org >> .envrc
echo USER_IID=$(id -u) >>.envrc
echo USER_GID=$(id -g) >>.envrc
make build
- name: Enforce pre-commit hook server side
uses: pre-commit/action@v3.0.1
- name: run tests
run: make test