diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c87327f..13cab63 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -6,15 +6,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - run: | - cd $HOME - git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git - cd man-card - git checkout main + run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card - - name: Test + - name: Install and test run: | - cd $HOME/man-card - pip install click fpdf2 Pillow rich python-dotenv pytest pytest-cov -q - pip install -e . -q - pytest tests/ -v + cd /tmp/man-card + pip install --no-cache-dir click fpdf2 Pillow rich python-dotenv pytest pytest-cov 2>&1 | tail -5 + pip install --no-cache-dir -e . 2>&1 | tail -3 + pytest tests/ -v 2>&1