Skip to content

Commit

Permalink
Set up test results directory in CI workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
csgoh committed Nov 2, 2024
1 parent 36ce790 commit 8179c9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ jobs:
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install dependencies (Windows)
if: matrix.os == 'windows-latest'
run: |
python -m pip install --upgrade pip
if (Test-Path requirements.txt) { pip install -r requirements.txt }
- name: Test with pytest
run: |
mkdir src/tests/data/results
pytest src/tests/

0 comments on commit 8179c9e

Please sign in to comment.