Fix CI workflow - add checkout, Python setup, and test steps
Some checks failed
CI / test (push) Failing after 10s
Some checks failed
CI / test (push) Failing after 10s
This commit is contained in:
@@ -5,12 +5,23 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout code
|
||||||
run: git clone --depth 1 https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check pip
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
which pip3
|
pip3 install -e ".[dev]"
|
||||||
pip3 --version
|
|
||||||
pip3 install click fpdf2 Pillow rich pytest pytest-cov
|
- name: Run tests
|
||||||
pip3 list | grep -E "(click|fpdf|Pillow|pytest)"
|
run: |
|
||||||
|
pytest tests/ -v --cov=man_card --cov-report=term-missing
|
||||||
|
|
||||||
|
- name: Check Python
|
||||||
|
run: |
|
||||||
|
python3 --version
|
||||||
|
which python3
|
||||||
|
|||||||
Reference in New Issue
Block a user