fix: resolve CI workflow duplicate .gitea folder issue
Some checks failed
CI / test (push) Failing after 4s
CI / build (push) Has been skipped

This commit is contained in:
2026-02-04 17:17:11 +00:00
parent 0d0fc72837
commit 156e512520

View File

@@ -11,9 +11,52 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install -e ".[dev]"
- run: pytest tests/ -v
- run: ruff check .
- name: Install dependencies
run: |
cd local_commit_message_generator
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Run tests
run: |
cd local_commit_message_generator
pytest tests/ -v --cov=src --cov-report=term-missing
- name: Check linting
run: |
cd local_commit_message_generator
pip install ruff
ruff check .
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build dependencies
run: |
cd local_commit_message_generator
pip install build
- name: Build package
run: |
cd local_commit_message_generator
python -m build
- name: Verify build
run: |
cd local_commit_message_generator
pip install dist/*.whl
commit-gen --help