This commit is contained in:
@@ -1,18 +1,20 @@
|
|||||||
name: CI
|
name: CI
|
||||||
on: [push, pull_request]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: python:3.11-slim
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout
|
||||||
run: |
|
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: |
|
run: |
|
||||||
cd /tmp/man-card
|
cd $HOME/man-card
|
||||||
pip install --quiet click fpdf2 Pillow rich python-dotenv pytest pytest-cov
|
pip install click fpdf2 Pillow rich python-dotenv pytest pytest-cov -q
|
||||||
pip install --quiet -e .
|
pip install -e . -q
|
||||||
pytest tests/ -v --tb=short
|
pytest tests/ -v
|
||||||
|
|||||||
Reference in New Issue
Block a user