@@ -36,13 +36,19 @@ jobs:
3636
3737 - name : Install dependencies
3838 run : |
39- cd ${{ env.PACKAGE_DIR }}
39+ echo "=== DEBUG: Installing dependencies ==="
40+ echo "Package: ${{ inputs.package }}"
41+ echo "Install path: ./libs/${{ inputs.package }}"
42+ echo "Current directory: $(pwd)"
43+ echo "Checking if path exists:"
44+ ls -la ./libs/${{ inputs.package }}/
45+ echo "=== Running pip install ==="
4046 python -m pip install --upgrade pip
41- pip install -e ".[dev]"
47+ pip install -e "./libs/${{ inputs.package }} [dev]"
4248
4349 - name : Run linting checks
50+ working-directory : libs/${{ inputs.package }}
4451 run : |
45- cd ${{ env.PACKAGE_DIR }}
4652 echo "=== Running ruff ==="
4753 ruff check src/ tests/
4854 echo "=== Running black ==="
7177 pip install bandit[toml] safety pip-audit
7278
7379 - name : Run Bandit security scan
80+ working-directory : libs/${{ inputs.package }}
7481 run : |
75- cd ${{ env.PACKAGE_DIR }}
7682 echo "=== Running Bandit security scan ==="
7783 # Run bandit with config file and capture exit code
7884 bandit -c ../../.bandit -r src/ -f json -o bandit-report.json || BANDIT_EXIT=$?
95101
96102 - name : Check dependencies with Safety
97103 run : |
98- cd ${{ env.PACKAGE_DIR }}
99104 echo "=== Checking dependencies with Safety ==="
100- pip install -e ".[dev,test]"
105+ pip install -e "./libs/${{ inputs.package }} [dev,test]"
101106 # Using the new 'scan' command as 'check' is deprecated
102107 safety scan --json || SAFETY_EXIT=$?
103108 # Safety scan exits with 64 if vulnerabilities found
@@ -108,7 +113,7 @@ jobs:
108113
109114 - name : Run pip-audit
110115 run : |
111- cd ${{ env.PACKAGE_DIR }}
116+ cd libs/ ${{ inputs.package }}
112117 echo "=== Running pip-audit ==="
113118 # Skip the local package as it's not on PyPI yet
114119 pip-audit --skip-editable
@@ -136,13 +141,12 @@ jobs:
136141
137142 - name : Install dependencies
138143 run : |
139- cd ${{ env.PACKAGE_DIR }}
140144 python -m pip install --upgrade pip
141- pip install -e ".[test]"
145+ pip install -e "./libs/${{ inputs.package }} [test]"
142146
143147 - name : Run unit tests with coverage
144148 run : |
145- cd ${{ env.PACKAGE_DIR }}
149+ cd libs/ ${{ inputs.package }}
146150 pytest tests/unit/ -v --cov=${{ inputs.package == 'async-cassandra' && 'async_cassandra' || 'async_cassandra_bulk' }} --cov-report=html --cov-report=xml || echo "No unit tests found (expected for new packages)"
147151
148152 build :
@@ -165,21 +169,21 @@ jobs:
165169
166170 - name : Build package
167171 run : |
168- cd ${{ env.PACKAGE_DIR }}
172+ cd libs/ ${{ inputs.package }}
169173 echo "=== Building package ==="
170174 python -m build
171175 echo "=== Package contents ==="
172176 ls -la dist/
173177
174178 - name : Check package with twine
175179 run : |
176- cd ${{ env.PACKAGE_DIR }}
180+ cd libs/ ${{ inputs.package }}
177181 echo "=== Checking package metadata ==="
178182 twine check dist/*
179183
180184 - name : Display package info
181185 run : |
182- cd ${{ env.PACKAGE_DIR }}
186+ cd libs/ ${{ inputs.package }}
183187 echo "=== Wheel contents ==="
184188 python -m zipfile -l dist/*.whl | head -20
185189 echo "=== Package metadata ==="
@@ -241,9 +245,8 @@ jobs:
241245
242246 - name : Install dependencies
243247 run : |
244- cd ${{ env.PACKAGE_DIR }}
245248 python -m pip install --upgrade pip
246- pip install -e ".[test,dev]"
249+ pip install -e "./libs/${{ inputs.package }} [test,dev]"
247250
248251 - name : Verify Cassandra is ready
249252 run : |
@@ -258,7 +261,7 @@ jobs:
258261 CASSANDRA_HOST : localhost
259262 CASSANDRA_PORT : 9042
260263 run : |
261- cd ${{ env.PACKAGE_DIR }}
264+ cd libs/ ${{ inputs.package }}
262265 echo "=== Running ${{ matrix.test-suite.name }} ==="
263266 ${{ matrix.test-suite.command }}
264267
@@ -305,9 +308,8 @@ jobs:
305308
306309 - name : Install dependencies
307310 run : |
308- cd ${{ env.PACKAGE_DIR }}
309311 python -m pip install --upgrade pip
310- pip install -e ".[test,dev]"
312+ pip install -e "./libs/${{ inputs.package }} [test,dev]"
311313
312314 - name : Verify Cassandra is ready
313315 run : |
@@ -322,7 +324,7 @@ jobs:
322324 CASSANDRA_HOST : localhost
323325 CASSANDRA_PORT : 9042
324326 run : |
325- cd ${{ env.PACKAGE_DIR }}
327+ cd libs/ ${{ inputs.package }}
326328 echo "=== Running ${{ matrix.test-suite.name }} ==="
327329 ${{ matrix.test-suite.command }}
328330
0 commit comments