fix: resolve CI/CD workflow configuration
Some checks failed
Shell History Alias Generator CI / test (push) Failing after 6s

This commit is contained in:
2026-02-01 08:55:16 +00:00
parent f733455c8e
commit d2b426f408

View File

@@ -1,28 +1,47 @@
name: CI name: Shell History Alias Generator CI
on: on:
push: push:
branches: [main] branches: [main]
paths:
- 'shell_alias_gen/**'
- 'tests/**'
- 'pyproject.toml'
- 'requirements.txt'
- '.gitea/workflows/ci.yml'
pull_request: pull_request:
branches: [main] branches: [main]
paths:
- 'shell_alias_gen/**'
- 'tests/**'
- 'pyproject.toml'
- 'requirements.txt'
- '.gitea/workflows/ci.yml'
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
uses: actions/checkout@v4
- uses: actions/setup-python@v5 - name: Set up Python
uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.11'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -e ".[dev]" pip install click rich pytest
pip install ruff mypy
- name: Run tests - name: Run pytest
run: pytest tests/ -v run: |
pytest tests/test_core.py tests/test_parsers.py -v --tb=short
- name: Run linter - name: Run ruff
run: ruff check . run: ruff check shell_alias_gen/ tests/
- name: Run mypy
run: mypy shell_alias_gen/ --ignore-missing-imports --python-version 3.11