Skip to content

Commit

Permalink
chore: Set --showlocals in CI env instead of global
Browse files Browse the repository at this point in the history
  • Loading branch information
aiven-anton committed May 10, 2023
1 parent adab144 commit 6589582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6589582

Please sign in to comment.