Skip to content

Commit

Permalink
chore: simplify CI
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Mar 2, 2024
1 parent c8df42e commit 9e64863
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
- run: python -m pip install -U uv
- run: |
cd docs/
uv v && . .venv/bin/activate
make install build
make system-install build
job_deploy:
# deploy only on the "stable" branch
if: ${{ github.ref == 'refs/heads/stable' }}
Expand All @@ -33,5 +32,4 @@ jobs:
- run: python -m pip install -U uv
- run: |
cd docs/
uv v && . .venv/bin/activate
make install deploy
make system-install deploy
3 changes: 1 addition & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,4 @@ jobs:
- name: Do linting
run: |
uv v && . .venv/bin/activate
make install ci-check
make system-install ci-check
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.PHONY: all
all:

.PHONY: system-install
system-install:
uv pip install --system -r requirements.txt

.PHONY: install
install:
uv pip install -r requirements.txt
Expand Down
6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
.phony: all
all: build

.PHONY: system-install
system-install:
uv pip install --system -r requirements.txt

.PHONY: install
install: pip-compile
install:
uv pip install -r requirements.txt

.PHONY: pip-compile
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pygments==2.17.2
# via mkdocs-material
pymdown-extensions==10.7
# via mkdocs-material
python-dateutil==2.9.0
python-dateutil==2.9.0.post0
# via ghp-import
pytz==2024.1
# via mkdocs-git-revision-date-localized-plugin
Expand Down
4 changes: 4 additions & 0 deletions docs/src/changelog.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
---
title: Changelog
---

--8<-- "../../../CHANGELOG.md"

0 comments on commit 9e64863

Please sign in to comment.