Skip to content

Commit 786b0bb

Browse files
authored
ci: fix: update paths in configuration files (#446)
ci: fix: update various paths Follow-up-to: #434
1 parent df7d26e commit 786b0bb

File tree

3 files changed

+14
-19
lines changed

3 files changed

+14
-19
lines changed

.coveragerc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
2-
source = ./openfoodfacts
3-
omit = ./venv/*,*tests*
2+
source = ./src/openfoodfacts
3+
omit = ./.venv/*,*tests*
44

55
[report]
6-
omit = ./venv/*,*tests*,*mi
6+
omit = ./.venv/*,*tests*,*mi

.github/labeler.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,32 @@ github_actions:
44

55
REDIS:
66
- changed-files:
7-
- any-glob-to-any-file: 'tests/test_redis.py'
8-
- any-glob-to-any-file: 'openfoodfacts/redis.py'
7+
- any-glob-to-any-file: 'tests/**/test_redis.py'
8+
- any-glob-to-any-file: 'src/openfoodfacts/redis.py'
99

1010
images:
1111
- changed-files:
12-
- any-glob-to-any-file: 'openfoodfacts/images.py'
13-
- any-glob-to-any-file: 'tests/test_images.py'
12+
- any-glob-to-any-file: 'src/openfoodfacts/images.py'
13+
- any-glob-to-any-file: 'tests/**/test_images.py'
1414

1515
OCR:
1616
- changed-files:
17-
- any-glob-to-any-file: 'tests/test_ocr.py'
17+
- any-glob-to-any-file: 'tests/**/test_ocr.py'
1818

1919
tests:
2020
- changed-files:
21-
- any-glob-to-any-file: 'tests/test_utils.py'
22-
- any-glob-to-any-file: 'tests/test_api.py'
23-
- any-glob-to-any-file: 'tests/test_ocr.py'
24-
- any-glob-to-any-file: 'tests/test_redis.py'
25-
- any-glob-to-any-file: 'tests/test_images.py'
26-
- any-glob-to-any-file: 'tests/test_api_config.py'
21+
- any-glob-to-any-file: 'tests/**/*'
2722

2823
utils:
2924
- changed-files:
30-
- any-glob-to-any-file: 'openfoodfacts/utils.py'
31-
- any-glob-to-any-file: 'tests/test_utils.py'
25+
- any-glob-to-any-file: 'src/openfoodfacts/utils.py'
26+
- any-glob-to-any-file: 'tests/**/test_utils.py'
27+
- any-glob-to-any-file: 'tests/unit/utils/**/*'
3228

3329
dependencies:
3430
- changed-files:
3531
- any-glob-to-any-file: 'uv.lock'
3632

3733
documentation:
3834
- changed-files:
39-
- any-glob-to-any-file: 'handle_taxonomies.md'
40-
- any-glob-to-any-file: 'usage.md'
35+
- any-glob-to-any-file: 'docs/**/*'

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Python SDK quality checks and unit tests
33
on:
44
push:
55
paths:
6-
- "openfoodfacts/**"
6+
- "src/**"
77
- "pyproject.toml"
88
- "uv.lock"
99
- "tests/**"

0 commit comments

Comments
 (0)