Skip to content

Commit 8179c9e

Browse files
committed
Set up test results directory in CI workflow
In the GitHub Actions workflow, created a 'results' directory within 'src/tests/data' to ensure that the directory exists before running pytest. This setup is essential for capturing output that may be generated during tests, improving organization and avoiding potential test failures due to missing directories.
1 parent 36ce790 commit 8179c9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ jobs:
4242
run: |
4343
python -m pip install --upgrade pip
4444
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
45+
4546
- name: Install dependencies (Windows)
4647
if: matrix.os == 'windows-latest'
4748
run: |
4849
python -m pip install --upgrade pip
4950
if (Test-Path requirements.txt) { pip install -r requirements.txt }
5051
- name: Test with pytest
5152
run: |
53+
mkdir src/tests/data/results
5254
pytest src/tests/

0 commit comments

Comments
 (0)