Simplify CI workflow for Gitea Actions compatibility
Some checks failed
CI / test (push) Failing after 2s

This commit is contained in:
2026-01-31 22:02:03 +00:00
parent e5528ceda8
commit 651ca94b84

View File

@@ -1,53 +1,26 @@
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout
run: |
echo "Gitea Actions automatically checks out code"
ls -la
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
run: |
python -m pip install --upgrade pip
python --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
pip install pytest
- name: Run tests
run: |
pytest tests/ -v --tb=short
- name: Run tests with coverage
run: |
pytest tests/ --cov=man_card --cov-report=term-missing --cov-report=xml
lint:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check code formatting
run: |
pip install black ruff
black --check man_card/
ruff check man_card/
pytest tests/ -v