Skip to content

Commit

Permalink
Ensure test results directory exists
Browse files Browse the repository at this point in the history
Add a check to verify the test results directory is successfully created before running tests with pytest. This ensures the test execution environment is properly prepared and prevents potential errors during the test run.
  • Loading branch information
csgoh committed Nov 2, 2024
1 parent 8179c9e commit 02ba905
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ jobs:
if (Test-Path requirements.txt) { pip install -r requirements.txt }
- name: Test with pytest
run: |
mkdir src/tests/data/results
mkdir -p src/tests/data/results
test -d src/tests/data/results || exit 1
pytest src/tests/

0 comments on commit 02ba905

Please sign in to comment.