28 lines
635 B
YAML
28 lines
635 B
YAML
name: CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: |
|
|
pwd
|
|
ls -la
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
|
|
|
- name: List files
|
|
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 |