Files
man-card/.gitea/workflows/ci.yml
7000pctAUTO ada3341ca9
Some checks failed
CI / test (push) Failing after 15s
CI / build (push) Has been skipped
CI / lint (push) Failing after 5s
Update CI workflow - simpler configuration
2026-01-31 21:47:13 +00:00

65 lines
1.3 KiB
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov
pip install -r requirements.txt
- name: Run tests
run: |
pytest tests/ -v
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Run linter
run: |
pip install ruff
ruff check .
build:
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.10'
- name: Install and build
run: |
pip install -r requirements.txt
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"