Skip to content

Commit fc6b0fe

Browse files
committed
Fix CI/CD infrastructure: Replace platform-specific mkdir with universal Python command
- Replace deprecated tox platform syntax (broken in tox 4.17.0+) - Use universal Python command for reports directory creation - Ensures compatibility with Docker and GitHub Actions environments - Resolves 'JUnitXML: Parent folder does not exist' error
1 parent ddd7c5d commit fc6b0fe

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tox.ini

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ deps=
3939
allowlist_externals=
4040
mkdir
4141
commands=
42-
linux: mkdir -p reports
43-
macos: mkdir -p reports
44-
win: mkdir reports
42+
python -c "import os; os.makedirs('reports', exist_ok=True)"
4543
nose2 --config=tests/ut/nose2.cfg --verbose --project-directory . {posargs}
4644
coverage html --fail-under=75 -d reports/coverage
4745

0 commit comments

Comments
 (0)