Skip to content

Commit be43f7b

Browse files
CEQ151CEQ151
authored andcommitted
ci: report required master checks
1 parent 25b975c commit be43f7b

1 file changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/python-engine.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,36 @@ jobs:
3333
wm = embed_watermark(img, 'hello world', password=42, quality='balanced')
3434
extracted = extract_watermark(wm, password=42, quality='balanced')
3535
assert extracted == 'hello world', f'Roundtrip failed: {extracted}'
36-
print('All tests passed.')
36+
print('All tests passed.')
37+
38+
mlwm-unit-tests:
39+
runs-on: ubuntu-latest
40+
name: MLWM unit tests
41+
steps:
42+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
43+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
44+
with:
45+
python-version: '3.10'
46+
- name: Run MLWM unit tests when present
47+
shell: bash
48+
run: |
49+
if [ -d blind_watermark/tests ]; then
50+
pip install -r blind_watermark/requirements.txt
51+
python -m unittest discover -s blind_watermark/tests
52+
else
53+
echo "No blind_watermark/tests directory exists on this branch yet."
54+
fi
55+
56+
typecheck:
57+
runs-on: ubuntu-latest
58+
name: Typecheck
59+
steps:
60+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
61+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
62+
with:
63+
node-version: '20'
64+
cache: npm
65+
- name: Install dependencies
66+
run: npm ci
67+
- name: Run TypeScript checks
68+
run: npm run typecheck

0 commit comments

Comments
 (0)