This commit is contained in:
@@ -5,24 +5,12 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: |
|
||||
pwd
|
||||
ls -la
|
||||
- name: Install pytest
|
||||
run: pip3 install pytest
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
||||
- name: Check pytest
|
||||
run: pytest --version
|
||||
|
||||
- name: List files
|
||||
- name: List directories
|
||||
run: |
|
||||
ls -la man_card/ 2>/dev/null || ls -la */ 2>/dev/null || ls -la
|
||||
|
||||
- name: Run tests if tests dir exists
|
||||
run: |
|
||||
if [ -d tests ]; then
|
||||
pytest tests -v
|
||||
elif [ -d */tests ]; then
|
||||
pytest */tests -v
|
||||
else
|
||||
echo "No tests directory found"
|
||||
fi
|
||||
ls -d */ 2>/dev/null || echo "No subdirectories"
|
||||
Reference in New Issue
Block a user