Skip to content

Commit c352a7f

Browse files
tweak mindee-lite testing
1 parent 43fcbcb commit c352a7f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/_test-units.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,10 @@ jobs:
8484
8585
- name: Install dependencies
8686
run: |
87-
python -m pip install pip
87+
cp pyproject-lite.toml pyproject.toml
8888
pip install -e '.[test]'
89-
pip uninstall -y pypdfium2 pillow
9089
9190
- name: Unit testing with pytest
9291
run: |
93-
pytest -m "lite and not pypdfium2 and not pillow"
92+
pytest --override-ini="addopts=..." --config-file=pyproject-lite.toml
9493

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,3 +140,4 @@ _test.py
140140
_test*.py
141141
_test.json
142142
local_test
143+
pyproject-lite.toml

scripts/generate_lite_toml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ def generate_lite() -> None:
1717
lite_deps = [
1818
dep
1919
for dep in original_deps
20-
if not str(dep).lower().startswith("Pillow")
20+
if not str(dep).lower().startswith("pillow")
2121
and not str(dep).lower().startswith("pypdfium2")
2222
]
2323
data["project"]["dependencies"] = lite_deps
2424

25-
with open("pyproject-lite.toml", encoding="utf-8") as f:
25+
with open("pyproject-lite.toml", "w", encoding="utf-8") as f:
2626
toml.dump(data, f)
2727

2828
print("Successfully generated pyproject-lite.toml")

0 commit comments

Comments
 (0)