Skip to content

Commit 91da789

Browse files
committed
mxmake setup
2 parents 15dc73c + 8fdc081 commit 91da789

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+26055
-3829
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 tiptap
1+
name: JS tests
22

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

85
jobs:
96
test:
10-
name: TEST TIPTAP
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: PY Test tiptap
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.tiptap.tests
49-
- name: Run coverage
50-
run: |
51-
coverage run --source=src/yafowil/widget/tiptap --omit=src/yafowil/widget/tiptap/example.py -m yafowil.widget.tiptap.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/tiptap/tests
46+
47+
- name: Run coverage
48+
run: |
49+
coverage run --source=src/yafowil/widget/tiptap --omit=src/yafowil/widget/tiptap/example.py -m pytest src/yafowil/widget/tiptap/tests
50+
coverage report --fail-under=99

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,16 @@
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
17+
/venv/

LICENSE.rst

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

4-
Copyright (c) 2021-2022, Yafowil Contributors
4+
Copyright (c) 2021-2024, Yafowil Contributors
55
All rights reserved.
66

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

0 commit comments

Comments
 (0)