Fix CI workflow - use native Gitea Actions syntax
Some checks failed
CI / test (push) Failing after 9s
Some checks failed
CI / test (push) Failing after 9s
This commit is contained in:
@@ -6,17 +6,25 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone https://7000pct.gitea.bloupla.net/7000pctAUTO/man-card.git /tmp/man-card
|
||||||
|
cd /tmp/man-card
|
||||||
|
git checkout main
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
run: |
|
||||||
with:
|
cd /tmp/man-card
|
||||||
python-version: '3.11'
|
apt-get update -qq
|
||||||
|
apt-get install -y -qq python3 python3-pip python3-venv > /dev/null 2>&1
|
||||||
|
python3 --version
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -e .
|
cd /tmp/man-card
|
||||||
pip install pytest pytest-cov
|
pip install -q -e .
|
||||||
|
pip install -q pytest pytest-cov
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ -v --cov=man_card --cov-report=term-missing
|
run: |
|
||||||
|
cd /tmp/man-card
|
||||||
|
pytest tests/ -v --cov=man_card --cov-report=term-missing
|
||||||
|
|||||||
Reference in New Issue
Block a user