Skip to content

Commit

Permalink
ci: building taxonomies for all flavors to catch errors (#11217)
Browse files Browse the repository at this point in the history
We currently only build off taxonomies in CI, this is problematic to
catch errors.

Also fix a duplicate error in opf categories.
  • Loading branch information
alexgarel authored Jan 9, 2025
1 parent cdd7cf5 commit a35d15a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,20 @@ jobs:
# see https://stackoverflow.com/a/60984318/2886726
run: |
git ls-files taxonomies/ | xargs -I{} git log -1 --date=format:%Y%m%d%H%M.%S --format='touch -t %ad "{}"' "{}" | bash
- name: Rebuild taxonomies
- name: Rebuild taxonomies for Open Food Facts (off)
run: make DOCKER_LOCAL_DATA="$(pwd)" build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
- name: Rebuild taxonomies for Open Beauty Facts (obf)
run: |
source env/setenv.sh obf
make DOCKER_LOCAL_DATA="$(pwd)" build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
- name: Rebuild taxonomies for Open Products Facts (opf)
run: |
source env/setenv.sh opf
make DOCKER_LOCAL_DATA="$(pwd)" build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
- name: Rebuild taxonomies for Open Pet Food Facts (opff)
run: |
source env/setenv.sh opff
make DOCKER_LOCAL_DATA="$(pwd)" build_taxonomies GITHUB_TOKEN="${{ secrets.TAXONOMY_CACHE_GITHUB_TOKEN }}"
check_perl:
name: 🐪 Check Perl
Expand Down
2 changes: 0 additions & 2 deletions taxonomies/petfood/categories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ en: castrated cat food
de: Kastriertes Katzenfutter
es: Comida para gatos castrados
fr: Nourriture pour chats castrés
nl: Kattenvoer
nl_be: Kattenvoer
ru: корм для кастрированных кошек

< en:dog and cat food
Expand Down

0 comments on commit a35d15a

Please sign in to comment.