Skip to content

GitHub Action to run pytest #3

GitHub Action to run pytest

GitHub Action to run pytest #3

Workflow file for this run

name: pytest
on: [pull_request, push]
jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with: {python-version: 3.x}
- run: pip install pytest testscenarios # git+https://github.com/testing-cabal/testscenarios.git@master
- run: pip install -r requirements.txt || pip install --editable . || pip install . || true
- run: pytest
--ignore=testtools/tests/test_testcase.py
--ignore=testtools/tests/matchers/test_basic.py
--ignore=testtools/tests/matchers/test_const.py
--ignore=testtools/tests/matchers/test_datastructures.py
--ignore=testtools/tests/matchers/test_dict.py
--ignore=testtools/tests/matchers/test_doctest.py
--ignore=testtools/tests/matchers/test_exception.py
--ignore=testtools/tests/matchers/test_higherorder.py
--ignore=testtools/tests/matchers/test_warnings.py .
- run: pytest
testtools/tests/test_testcase.py
testtools/tests/matchers/test_basic.py
testtools/tests/matchers/test_const.py
testtools/tests/matchers/test_datastructures.py
testtools/tests/matchers/test_dict.py
testtools/tests/matchers/test_doctest.py
testtools/tests/matchers/test_exception.py
testtools/tests/matchers/test_higherorder.py
testtools/tests/matchers/test_warnings.py
- run: pytest --doctest-modules . || true