diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3b019c5..c87327f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,18 +1,20 @@ name: CI -on: [push, pull_request] +on: [push] jobs: test: runs-on: ubuntu-latest - container: python:3.11-slim steps: - - name: Checkout code + - name: Checkout run: | - git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card + cd $HOME + git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git + cd man-card + git checkout main - - name: Install and test + - name: Test run: | - cd /tmp/man-card - pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov - pip install --quiet -e . - pytest tests/ -v --tb=short + cd $HOME/man-card + pip install click fpdf2 Pillow rich python-dotenv pytest pytest-cov -q + pip install -e . -q + pytest tests/ -v