fix: resolve CI workflow duplicate .gitea folder issue
This commit is contained in:
@@ -11,9 +11,52 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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'
|
||||||
- run: pip install -e ".[dev]"
|
|
||||||
- run: pytest tests/ -v
|
- name: Install dependencies
|
||||||
- run: ruff check .
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user