Skip to content

Commit 622e8e9

Browse files
committed
fix: add CI cache bust and debug step for bandit installation
1 parent c0c5d1f commit 622e8e9

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,21 @@ jobs:
6060
uses: actions/cache@v4
6161
with:
6262
path: .venv # Path to the virtual environment directory (if virtualenvs-in-project: true)
63-
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
63+
key: venv-v2-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
6464

6565
- name: Install dependencies with Poetry
6666
# Installs project dependencies using Poetry.
6767
# Always install dependencies to ensure dev tools like bandit are available
6868
run: poetry install --no-interaction --with dev
6969

70+
- name: Verify bandit installation
71+
# Debug step to verify bandit is properly installed
72+
run: |
73+
echo "Checking bandit installation..."
74+
poetry run which bandit || echo "bandit not found in PATH"
75+
poetry run bandit --version || echo "bandit --version failed"
76+
ls -la .venv/bin/ | grep bandit || echo "bandit executable not found"
77+
7078
- name: Run Ruff (Linting and Formatting Check)
7179
# Runs Ruff to check for linting errors and formatting issues.
7280
# --output-format=github makes Ruff output annotations directly in PRs/Actions UI.

0 commit comments

Comments
 (0)