Skip to content

Commit 5cfbffc

Browse files
author
Datata1
committed
test: fix ci
1 parent f3769c9 commit 5cfbffc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ jobs:
3737
id: bandit_check
3838
run: |
3939
echo "Running Bandit security check..."
40-
# Wir nutzen 'uv run', um sicherzustellen, dass bandit im venv ausgeführt wird
41-
# set +e erlaubt, dass der Step weiterläuft, auch wenn Bandit Fehler findet (Exit Code 1)
4240
set +e
43-
uv run bandit -r . -c pyproject.toml --format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]: {msg}" -o bandit-results.txt
41+
uv run bandit -r . --format=custom --msg-template "{abspath}:{line}: {test_id}[{severity}]: {msg}" -o bandit-results.txt
4442
BANDIT_EXIT_CODE=$?
4543
set -e
4644
@@ -107,6 +105,9 @@ jobs:
107105
permissions:
108106
contents: read
109107
pull-requests: write
108+
env:
109+
TOKEN: 'dummy-token-for-ci'
110+
CODESPHERE_TOKEN: 'dummy-token-for-ci'
110111

111112
steps:
112113
- name: Checkout repository
@@ -122,11 +123,8 @@ jobs:
122123
shell: bash
123124

124125
- name: Run tests with pytest
125-
env:
126-
TOKEN: 'dummy-token-for-ci'
127-
CODESPHERE_TOKEN: 'dummy-token-for-ci'
128126
run: |
129-
uv run pytest --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html --cov=. | tee pytest-coverage.txt
127+
uv run pytest --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html --cov=. --ignore=tests/integration | tee pytest-coverage.txt
130128
shell: bash
131129

132130
- name: Pytest coverage comment

0 commit comments

Comments
 (0)