This commit is contained in:
@@ -7,24 +7,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
run: |
|
||||||
git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
|
if [ -d /tmp/man-card ]; then rm -rf /tmp/man-card; fi
|
||||||
cd /tmp/man-card
|
git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
|
||||||
git checkout main
|
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Install dependencies and run tests
|
||||||
run: |
|
|
||||||
cd /tmp/man-card
|
|
||||||
apt-get update -qq
|
|
||||||
apt-get install -y -qq python3 python3-pip python3-venv > /dev/null 2>&1
|
|
||||||
python3 --version
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
run: |
|
||||||
cd /tmp/man-card
|
cd /tmp/man-card
|
||||||
pip install -q -e .
|
pip install -q -e .
|
||||||
pip install -q pytest pytest-cov
|
pip install -q pytest pytest-cov
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
cd /tmp/man-card
|
|
||||||
pytest tests/ -v --cov=man_card --cov-report=term-missing
|
pytest tests/ -v --cov=man_card --cov-report=term-missing
|
||||||
|
|||||||
Reference in New Issue
Block a user