Skip to content

Commit 97360a6

Browse files
committed
Merge branch '2.0' into bs5
2 parents 836ef2c + 7e89734 commit 97360a6

26 files changed

+727
-347
lines changed

.github/workflows/test_js.yaml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
1-
name: JS Test image
1+
name: JS tests
22

3-
on:
4-
push:
5-
paths:
6-
- '**.js'
3+
on: [push]
74

85
jobs:
96
test:
10-
name: TEST IMAGE
7+
name: Test
118

129
runs-on: ubuntu-latest
1310

1411
steps:
15-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1613

17-
- name: Install
18-
run: |
19-
npm --save-dev install \
20-
qunit \
21-
karma \
22-
karma-qunit \
23-
karma-coverage \
24-
karma-chrome-launcher \
25-
karma-module-resolver-preprocessor
26-
npm --no-save install https://github.com/jquery/jquery#main
14+
- name: Install
15+
run: |
16+
corepack enable
17+
make nodejs
2718
28-
- name: Run tests
29-
run: |
30-
node_modules/karma/bin/karma start js/karma.conf.js
31-
32-
- name: Run coverage
33-
run: |
34-
npm run karma-test:coverage
19+
- name: Run tests
20+
run: make wtr

.github/workflows/test_py.yaml

Lines changed: 29 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
name: Test image
1+
name: Python tests
22

3-
on:
4-
push:
5-
paths:
6-
- '**.py'
3+
on: [push]
74

85
jobs:
96
test:
@@ -19,34 +16,35 @@ jobs:
1916
- macos-latest
2017

2118
python:
22-
- "2.7"
23-
- "3.7"
2419
- "3.8"
2520
- "3.9"
2621
- "3.10"
22+
- "3.11"
23+
- "3.12"
24+
- "3.13"
2725

2826
steps:
29-
- uses: actions/checkout@v2
30-
31-
- name: Set up Python
32-
uses: actions/setup-python@v2
33-
with:
34-
python-version: ${{ matrix.python }}
35-
36-
- name: Install
37-
run: |
38-
pip install wheel
39-
pip install coverage
40-
pip install lxml
41-
pip install zope.testrunner
42-
pip install https://github.com/conestack/webresource/archive/master.zip
43-
pip install https://github.com/conestack/yafowil/archive/master.zip
44-
pip install -e .[test]
45-
- name: Run tests
46-
run: |
47-
python --version
48-
python -m yafowil.widget.image.tests
49-
- name: Run coverage
50-
run: |
51-
coverage run --source=src/yafowil/widget/image --omit=src/yafowil/widget/image/example.py -m yafowil.widget.image.tests
52-
coverage report --fail-under=99
27+
- uses: actions/checkout@v2
28+
29+
- name: Set up Python
30+
uses: actions/setup-python@v2
31+
with:
32+
python-version: ${{ matrix.python }}
33+
34+
- name: Install
35+
run: |
36+
pip install wheel
37+
pip install coverage
38+
pip install https://github.com/conestack/webresource/archive/master.zip
39+
pip install https://github.com/conestack/yafowil/archive/master.zip
40+
pip install -e .[test]
41+
42+
- name: Run tests
43+
run: |
44+
python --version
45+
python -m pytest src/yafowil/widget/image/tests
46+
47+
- name: Run coverage
48+
run: |
49+
coverage run --source=src/yafowil/widget/image --omit=src/yafowil/widget/image/example.py -m pytest src/yafowil/widget/image/tests
50+
coverage report --fail-under=99

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
*.pyc
33
*.pyo
44
/.coverage
5+
/.mxmake/
6+
/coverage/
57
/dist/
68
/htmlcov/
79
/js/karma/
810
/node_modules/
911
/package-lock.json
12+
/pnpm-lock.yaml
1013
/py2/
1114
/py3/
1215
/pypy3/
16+
/requirements-mxdev.txt
1317
/src/yafowil/widget/image/images_tmp
1418
/src/yafowil/widget/image/testing/crop_fitting_ls_18_30.png
1519
/src/yafowil/widget/image/testing/crop_fitting_ls_30_18.png
@@ -19,11 +23,12 @@
1923
/src/yafowil/widget/image/testing/crop_fitting_sq_40_50.png
2024
/src/yafowil/widget/image/testing/crop_fitting_sq_48_40.png
2125
/src/yafowil/widget/image/testing/crop_size_20_20.png
22-
/src/yafowil/widget/image/testing/crop_size_20_40.png
2326
/src/yafowil/widget/image/testing/crop_size_20_40_offset_5_3.png
27+
/src/yafowil/widget/image/testing/crop_size_20_40.png
2428
/src/yafowil/widget/image/testing/crop_size_40_20.png
2529
/src/yafowil/widget/image/testing/crop_size_50_20_offset_5_0.png
2630
/src/yafowil/widget/image/testing/cropped.png
2731
/src/yafowil/widget/image/testing/landscape.png
2832
/src/yafowil/widget/image/testing/micro.png
2933
/src/yafowil/widget/image/testing/portrait.png
34+
/venv/

LICENSE.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ License
22
=======
33

44
Copyright (c) 2012-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
5-
Copyright (c) 2021-2022, Yafowil Contributors
5+
Copyright (c) 2021-2024, Yafowil Contributors
66
All rights reserved.
77

88
Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)