fix: resolve CI/CD workflow configuration issues
Some checks failed
CI / test (push) Failing after 12s

This commit is contained in:
2026-02-01 08:56:30 +00:00
parent d2b426f408
commit a74ced9b6c

View File

@@ -1,22 +1,12 @@
name: Shell History Alias Generator CI
name: CI
on:
push:
branches: [main]
paths:
- 'shell_alias_gen/**'
- 'tests/**'
- 'pyproject.toml'
- 'requirements.txt'
- '.gitea/workflows/ci.yml'
branches:
- main
pull_request:
branches: [main]
paths:
- 'shell_alias_gen/**'
- 'tests/**'
- 'pyproject.toml'
- 'requirements.txt'
- '.gitea/workflows/ci.yml'
branches:
- main
jobs:
test:
@@ -28,20 +18,27 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install click rich pytest
pip install ruff mypy
- name: Run pytest
- name: Install package
run: |
pytest tests/test_core.py tests/test_parsers.py -v --tb=short
pip install -e .
- name: Run ruff
run: ruff check shell_alias_gen/ tests/
- name: Run tests
run: |
python -m pytest tests/ -v
- name: Run mypy
run: mypy shell_alias_gen/ --ignore-missing-imports --python-version 3.11
- name: Check linting
run: |
pip install ruff
ruff check .
- name: Check types
run: |
pip install mypy
mypy shell_alias_gen/ --ignore-missing-imports