Skip to content

ci: build and publish documentation #491

ci: build and publish documentation

ci: build and publish documentation #491

Workflow file for this run

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