Skip to content

Commit

Permalink
add github tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lenadax committed May 6, 2022
1 parent baaf6b0 commit 2fd3a28
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/test_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test chosen

on:
push:

jobs:
test:
name: Test ${{ matrix.python }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

python:
- "2.7"
- "3.7"
- "3.8"
- "3.9"
- "3.10"

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 https://github.com/conestack/yafowil/archive/master.zip
pip install -e .[test]
- name: Run tests
run: |
python --version
python -m yafowil.widget.chosen.tests
- name: Run coverage
run: |
coverage run --source=src/yafowil/widget/chosen --omit=src/yafowil/widget/chosen/example.py -m yafowil.widget.chosen.tests
coverage report --fail-under=99

0 comments on commit 2fd3a28

Please sign in to comment.