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