This commit is contained in:
@@ -5,24 +5,12 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- name: Install pytest
|
||||||
pwd
|
run: pip3 install pytest
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Check pytest
|
||||||
run: |
|
run: pytest --version
|
||||||
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
|
||||||
|
|
||||||
- name: List files
|
- name: List directories
|
||||||
run: |
|
run: |
|
||||||
ls -la man_card/ 2>/dev/null || ls -la */ 2>/dev/null || ls -la
|
ls -d */ 2>/dev/null || echo "No subdirectories"
|
||||||
|
|
||||||
- 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
|
|
||||||
Reference in New Issue
Block a user