This commit is contained in:
@@ -5,28 +5,18 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Debug environment
|
|
||||||
run: |
|
|
||||||
echo "Python version:"
|
|
||||||
python3 --version 2>&1 || echo "python3 not found"
|
|
||||||
echo "pip version:"
|
|
||||||
pip3 --version 2>&1 || echo "pip3 not found"
|
|
||||||
echo "git version:"
|
|
||||||
git --version 2>&1 || echo "git not found"
|
|
||||||
echo "Working directory:"
|
|
||||||
pwd
|
|
||||||
echo "Files:"
|
|
||||||
ls -la
|
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
if [ -d /tmp/man-card ]; then rm -rf /tmp/man-card; fi
|
mkdir -p /tmp/man-card
|
||||||
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card 2>&1
|
cd /tmp/man-card
|
||||||
ls -la /tmp/man-card
|
git init
|
||||||
|
git remote add origin https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git
|
||||||
|
git fetch --depth 1 origin main
|
||||||
|
git checkout main
|
||||||
|
|
||||||
- name: Install and test
|
- name: Install and run tests
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/man-card
|
cd /tmp/man-card
|
||||||
pip3 install -e . pytest pytest-cov 2>&1
|
pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
||||||
pip3 list | grep -E "(click|fpdf|pytest)"
|
pip install --quiet -e .
|
||||||
pytest tests/ -v --cov=man_card 2>&1
|
pytest tests/ -v --tb=short
|
||||||
|
|||||||
Reference in New Issue
Block a user