Skip to content

Commit

Permalink
mxmake setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed Nov 4, 2024
2 parents ff9a64b + 8857271 commit d74bc17
Show file tree
Hide file tree
Showing 29 changed files with 368 additions and 467 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/test_js.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,20 @@
name: JS Test slider
name: JS tests

on:
push:
paths:
- '**.js'
on: [push]

jobs:
test:
name: TEST SLIDER
name: Test

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install
run: |
make npm
- name: Install
run: |
corepack enable
make nodejs
- name: Run tests
run: |
make karma
- name: Run coverage
run: |
npm run karma-test:coverage
- name: Run tests
run: make wtr
59 changes: 28 additions & 31 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: PY Test slider
name: Python tests

on:
push:
paths:
- '**.py'
on: [push]

jobs:
test:
Expand All @@ -19,35 +16,35 @@ jobs:
- macos-latest

python:
- "2.7"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
pip install wheel
pip install coverage
pip install lxml
pip install zope.testrunner
pip install webresource
pip install yafowil
pip install -e .[test]
- name: Run tests
run: |
python --version
python -m yafowil.widget.slider.tests
- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/slider --omit=src/yafowil/widget/slider/example.py -m yafowil.widget.slider.tests
coverage report --fail-under=99
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install
run: |
pip install wheel
pip install coverage
pip install https://github.com/conestack/webresource/archive/master.zip
pip install https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]
- name: Run tests
run: |
python --version
python -m pytest src/yafowil/widget/slider/tests
- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/slider --omit=src/yafowil/widget/slider/example.py -m pytest src/yafowil/widget/slider/tests
coverage report --fail-under=99
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
/.coverage
/.mxmake/
/constraints-mxdev.txt
/coverage/
/dist/
/htmlcov/
/js/karma/
/node_modules/
/package-lock.json
/pnpm-lock.yaml
/requirements-mxdev.txt
/venv/
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ License
=======

Copyright (c) 2013-2021, BlueDynamics Alliance, Austria, Germany, Switzerland
Copyright (c) 2021-2022, Yafowil Contributors
Copyright (c) 2021-2024, Yafowil Contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading

0 comments on commit d74bc17

Please sign in to comment.