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 3, 2024
1 parent c8df42e commit 9702e2d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 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 install build UV_INSTALL_FLAGS="--system"
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 install deploy UV_INSTALL_FLAGS="--system"
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 install ci-check UV_INSTALL_FLAGS="--system"
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
UV_INSTALL_FLAGS :=

.PHONY: all
all:

.PHONY: install
install:
uv pip install -r requirements.txt
uv pip install $(UV_INSTALL_FLAGS) -r requirements.txt

.PHONY: pip-compile
pip-compile:
Expand Down
6 changes: 4 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
UV_INSTALL_FLAGS :=

.phony: all
all: build

.PHONY: install
install: pip-compile
uv pip install -r requirements.txt
install:
uv pip install $(UV_INSTALL_FLAGS) -r requirements.txt

.PHONY: pip-compile
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 9702e2d

Please sign in to comment.