From a74ced9b6cc05184b1af714eb5ba2f4303af679b Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 08:56:30 +0000 Subject: [PATCH] fix: resolve CI/CD workflow configuration issues --- .gitea/workflows/ci.yml | 43 +++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 0cc0bbb..33c2d68 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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