From 9e648631d73ec464f2ad1ea8cc4e32c2882c5eb5 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Sat, 2 Mar 2024 16:37:41 +0800 Subject: [PATCH] chore: simplify CI Signed-off-by: Jack Cherng --- .github/workflows/docs.yml | 6 ++---- .github/workflows/python.yml | 3 +-- Makefile | 4 ++++ docs/Makefile | 6 +++++- docs/requirements.txt | 2 +- docs/src/changelog.md | 4 ++++ 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 9ed2c41a..7eb57ccb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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' }} @@ -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 diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 8872f729..c1ff53e6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -47,5 +47,4 @@ jobs: - name: Do linting run: | - uv v && . .venv/bin/activate - make install ci-check + make system-install ci-check diff --git a/Makefile b/Makefile index 6f572ed5..33dd827c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/docs/Makefile b/docs/Makefile index 45dc53b4..c895d6fd 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -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 diff --git a/docs/requirements.txt b/docs/requirements.txt index 6a757851..9957d053 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -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 diff --git a/docs/src/changelog.md b/docs/src/changelog.md index 644e21d9..e942d679 100644 --- a/docs/src/changelog.md +++ b/docs/src/changelog.md @@ -1 +1,5 @@ +--- +title: Changelog +--- + --8<-- "../../../CHANGELOG.md"