From 6589582e022bcdf962697d955caef19901751343 Mon Sep 17 00:00:00 2001 From: Anton Agestam Date: Wed, 10 May 2023 15:08:06 +0200 Subject: [PATCH] chore: Set --showlocals in CI env instead of global --- .github/workflows/tests.yml | 7 +++++-- pytest.ini | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f437a8683..96a285fe6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -21,6 +21,11 @@ jobs: strategy: matrix: python-version: [ '3.8', '3.9', '3.10', '3.11' ] + env: + PYTEST_ADDOPTS: >- + --log-dir=/tmp/ci-logs + --log-file=/tmp/ci-logs/pytest.log + --showlocals steps: - uses: actions/checkout@v3 @@ -33,8 +38,6 @@ jobs: - run: make install version - run: make unit-tests - run: make integration-tests - env: - PYTEST_ARGS: --log-dir=/tmp/ci-logs --log-file=/tmp/ci-logs/pytest.log - name: Archive logs uses: actions/upload-artifact@v3 diff --git a/pytest.ini b/pytest.ini index b0b00e561..d249737d7 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,4 @@ [pytest] -addopts = -ra -q --tb=short --showlocals --numprocesses auto --import-mode=importlib +addopts = -ra -q --tb=short --numprocesses auto --import-mode=importlib timeout = 60 timeout_func_only = true