Fix CI workflow for shellgenius project
Some checks failed
CI / test (push) Failing after 11s
CI / lint (push) Failing after 5s
CI / type-check (push) Failing after 10s

- Changed from Rust/Cargo workflow to Python/pytest workflow
- Added proper Python 3.11 setup
- Added test, lint, and type-check jobs for Python project
- Fixed linting to only check shellgenius/ and tests/ directories
This commit is contained in:
2026-02-04 11:11:44 +00:00
parent 6a42aeb8c1
commit a583eaa6d2

View File

@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
@@ -22,15 +22,12 @@ jobs:
- name: Run tests
run: pytest tests/ -v --tb=short
- name: Check code coverage
run: pytest tests/ --cov=shellgenius --cov-report=term-missing
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
@@ -39,13 +36,13 @@ jobs:
run: pip install ruff>=0.1.0
- name: Run ruff linter
run: ruff check .
run: ruff check shellgenius/ tests/
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'