diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5024560..e392b57 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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