-
-
Notifications
You must be signed in to change notification settings - Fork 14
28 lines (26 loc) · 816 Bytes
/
pre-commit.yml
File metadata and controls
28 lines (26 loc) · 816 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
name: Run checks
on:
pull_request:
branches: [ main ]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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 ALLOWED_ORIGINS='http://localhost,http://127.0.0.1,https://*.openfoodfacts.org,https://*.openfoodfacts.net' >> .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/[email protected]
- name: run tests
run: make test