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 47bb38f
Show file tree
Hide file tree
Showing 5 changed files with 13 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 ci-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 ci-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 ci-install ci-check
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ ci-fix:
ruff check --fix .
@echo "========== fix: ruff (format) =========="
ruff format .

.PHONY: ci-install
ci-install:
uv pip install --system -r requirements.txt
6 changes: 5 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
all: build

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

.PHONY: pip-compile
Expand All @@ -24,3 +24,7 @@ deploy:
.phony: clean
clean:
rm -rf site/

.PHONY: ci-install
ci-install:
uv pip install --system -r requirements.txt
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

0 comments on commit 47bb38f

Please sign in to comment.