Use Python container for CI
Some checks failed
CI / test (push) Failing after 1s

This commit is contained in:
2026-01-31 22:20:04 +00:00
parent 4a88626574
commit 4386db5c84

View File

@@ -4,17 +4,13 @@ on: [push, pull_request]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: python:3.11-slim
steps: steps:
- name: Checkout code - name: Checkout code
run: | run: |
mkdir -p /tmp/man-card git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
cd /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 run tests - name: Install and test
run: | run: |
cd /tmp/man-card cd /tmp/man-card
pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov