Update CI workflow - simpler configuration
Some checks failed
CI / test (push) Failing after 15s
CI / build (push) Has been skipped
CI / lint (push) Failing after 5s

This commit is contained in:
2026-01-31 21:47:13 +00:00
parent 228ec20b8b
commit ada3341ca9

View File

@@ -18,24 +18,17 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Cache pip packages
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
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 --cov=man_card --cov-report=term-missing
pytest tests/ -v
lint:
runs-on: ubuntu-latest
@@ -46,15 +39,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install linting tools
run: |
python -m pip install --upgrade pip
pip install ruff
python-version: '3.10'
- name: Run linter
run: |
pip install ruff
ruff check .
build:
@@ -67,17 +56,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
python-version: '3.10'
- name: Install dependencies
- name: Install and build
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Verify build
run: |
python -c "from man_card import cli; print('CLI module imports successfully')"
python -c "from man_card import man_parser; print('man_parser module imports successfully')"
python -c "from man_card import card_generator; print('card_generator module imports successfully')"
python -c "from man_card import templates; print('templates module imports successfully')"
python -c "from man_card import config; print('config module imports successfully')"
python -c "from man_card import cli, man_parser, card_generator, templates, config; print('All modules import successfully')"