From 4c5c01c15fbc9eab5a24e8ecfc32745fce45ced9 Mon Sep 17 00:00:00 2001 From: Cagtay Fabry <43667554+CagtayFabry@users.noreply.github.com> Date: Mon, 12 Jul 2021 16:42:08 +0200 Subject: [PATCH] add test path to pytest config (#405) * add test path to pytest config * add weldx/asdf/cli * use weldx path * explicitly set schema test path * update pytest_asdf.yml --- .github/workflows/pytest_asdf.yml | 4 ++-- setup.cfg | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest_asdf.yml b/.github/workflows/pytest_asdf.yml index c3911e0fa..a792cdffb 100644 --- a/.github/workflows/pytest_asdf.yml +++ b/.github/workflows/pytest_asdf.yml @@ -17,6 +17,6 @@ jobs: - name: pip installs run: | pip install -e .[test] - - name: run pytest + - name: run asdf schema pytest run: | - pytest --asdf-tests --ignore=weldx/tests/ --no-cov weldx/asdf/schemas + pytest --asdf-tests --ignore=weldx/tests/ --no-cov weldx/asdf/schemas/ diff --git a/setup.cfg b/setup.cfg index d8ea363aa..0a79d0508 100644 --- a/setup.cfg +++ b/setup.cfg @@ -98,6 +98,8 @@ match_dir = [^\.][^\docs].* [tool:pytest] addopts = --tb=short --color=yes -rs --cov=weldx --cov-report=term-missing:skip-covered --doctest-modules #addopts = --tb=short --color=yes -rs -p no:cov +testpaths = + weldx # custom test markers, see https://docs.pytest.org/en/latest/example/markers.html#mark-examples markers = slow: marks tests as slow to run (skipped by default, enable with --runslow option)