Skip to content

Commit

Permalink
Add deploy docs workflow (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: Kutu <[email protected]>
  • Loading branch information
kutu-dev and Kutu authored Jun 1, 2024
1 parent 5015746 commit cdd6a2c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Linting and formatting

on:
push:
branches:
- master
pull_request:

jobs:
run-docs:
runs-on: ubuntu-24.04

steps:
- run: sudo apt-get install -y just
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11.9"
- uses: actions/cache@v3
with:
path: .venv
key: ${{ runner.os }}-${{ hashFiles('requirements/requirements-docs.txt') }}
- run: just setup-docs
- run: just deploy-docs
3 changes: 0 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# TODO

- [ ] Add `justfile`.
- [ ] Remove `pre-commit`.
- [ ] Custom git-hooks?
- [ ] Document in contributing why attributes are double typed.
- [ ] Add general documentation and tutorials.
6 changes: 6 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Default recipe of the justfile
default: help

# Show this info message
Expand All @@ -23,6 +24,11 @@ setup-tests: generic-setup
.venv/bin/pip install .
.venv/bin/pip install -r requirements/requirements-tests.txt

[private]
setup-docs: generic-setup
.venv/bin/pip install .
.venv/bin/pip install -r requirements/requirements-docs.txt

# Check if the project is following the guidelines
check:
.venv/bin/mypy src/knuckles
Expand Down

0 comments on commit cdd6a2c

Please sign in to comment.