diff --git a/.github/workflows/test_py.yaml b/.github/workflows/test_py.yaml new file mode 100644 index 0000000..4994d52 --- /dev/null +++ b/.github/workflows/test_py.yaml @@ -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 \ No newline at end of file