From 9f3bbe5b24f1b4a90fed750b696386e35705d915 Mon Sep 17 00:00:00 2001 From: Ryan Murray <74630349+rywm-dhi@users.noreply.github.com> Date: Mon, 22 Jan 2024 12:15:20 +0100 Subject: [PATCH] Make .pytest.ini specifically for CI pipeline --- .github/workflows/full_test.yml | 4 ++-- .pytest-ci.ini | 6 ++++++ .pytest.ini | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .pytest-ci.ini diff --git a/.github/workflows/full_test.yml b/.github/workflows/full_test.yml index 3ebc1ca7..4a1961d0 100644 --- a/.github/workflows/full_test.yml +++ b/.github/workflows/full_test.yml @@ -44,10 +44,10 @@ jobs: pip install .[test] - name: Test with pytest (basic) run: | - pytest -m "" + pytest -c .pytest-ci.ini - name: Install mikeio1d (optional dependencies) run: | pip install .[all] - name: Test with pytest (optional dependencies) run: | - pytest -m "" + pytest -c .pytest-ci.ini diff --git a/.pytest-ci.ini b/.pytest-ci.ini new file mode 100644 index 00000000..3cd290b0 --- /dev/null +++ b/.pytest-ci.ini @@ -0,0 +1,6 @@ +; this is the pytest configuration file used by the CI pipeline +[pytest] +addopts = + --strict-markers +markers = + slow diff --git a/.pytest.ini b/.pytest.ini index 84060a83..3be1ee55 100644 --- a/.pytest.ini +++ b/.pytest.ini @@ -1,3 +1,4 @@ +; this file is used locally and not in the CI pipeline - refer to .pytest-ci.ini for CI pipeline configuration [pytest] addopts = --strict-markers