Skip to content

Commit cc76525

Browse files
author
Francisco
committed
fix: simplify CI workflow, consolidate dependency installation, and clean up comments
1 parent 8c5fc91 commit cc76525

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ jobs:
2929
uses: actions/cache@v4
3030
with:
3131
path: ~/.cache/pip
32-
key: ${{ runner.os }}-pip-lint-${{ hashFiles('requirements.txt', 'pyproject.toml') }}
32+
key: ${{ runner.os }}-pip-lint-${{ hashFiles('pyproject.toml') }}
3333
restore-keys: |
3434
${{ runner.os }}-pip-lint-
3535
36-
- name: Install tools and project dependencies
36+
- name: Install project and dev dependencies
3737
run: |
3838
pip install --upgrade pip
39-
pip install -r requirements.txt
40-
pip install -e .
41-
pip install ruff==0.4.0 black pytest
39+
pip install -e ".[dev]"
4240
4341
- name: Run Ruff Linter
4442
run: ruff check . --output-format=github
@@ -55,9 +53,7 @@ jobs:
5553
docker compose -f docker-compose.yml -f docker-compose.gpu.yml config --quiet --no-interpolate
5654
5755
# ──────────────────────────────────────────────────────────────────────────
58-
# Release — semantic versioning, changelog, and GitHub release
59-
# Uses cycjimmy/semantic-release-action which correctly exposes step outputs
60-
# so the publish job can gate on whether a release was actually cut.
56+
# Release
6157
# ──────────────────────────────────────────────────────────────────────────
6258
release:
6359
name: Git Version & Changelog
@@ -100,20 +96,17 @@ jobs:
10096
echo "New release: v${{ steps.semantic.outputs.new_release_version }}"
10197
10298
# ──────────────────────────────────────────────────────────────────────────
103-
# Publish — build wheel and push to PyPI
104-
# Only runs when semantic-release actually cut a new release
99+
# Publish
105100
# ──────────────────────────────────────────────────────────────────────────
106101
publish:
107102
name: Build & Publish to PyPI
108103
runs-on: ubuntu-latest
109104
needs: release
110105
if: needs.release.outputs.new_release_published == 'true'
111-
112106
steps:
113107
- name: Checkout repository at new release tag
114108
uses: actions/checkout@v4
115109
with:
116-
# Check out the bumped tag so pyproject.toml already has the new version
117110
ref: v${{ needs.release.outputs.new_release_version }}
118111

119112
- name: Set up Python

0 commit comments

Comments
 (0)