Skip to content

Commit

Permalink
Get all py files to run them with pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Mar 5, 2024
1 parent 99bb7db commit 9926671
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-tips.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ jobs:
Set-Location -Path $dir.FullName
python -m pip install --upgrade pip
pip install -r requirements.txt
dir
pytest *.py
$pyFiles = Get-ChildItem -Path . -Recurse -Filter '*.py' | ForEach-Object { $_.FullName }
if ($pyFiles)
{
pytest $pyFiles
}
Set-Location -Path $PSScriptRoot
}

0 comments on commit 9926671

Please sign in to comment.