Skip to content

Commit

Permalink
refactor workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tscholak committed Oct 19, 2024
1 parent 5421d17 commit 79ad5bf
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 60 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build-documentation.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and push Docker image
name: CI

on:
schedule:
Expand All @@ -14,6 +14,7 @@ on:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -33,6 +34,7 @@ jobs:
run: pytest .

docker:
name: Docker
runs-on: ubuntu-latest
needs: test
steps:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/deploy-documentation.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Documentation

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install ".[DOCS]"
- name: Build the documentation
run: mkdocs build

deploy:
if: github.event_name == 'push'
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install ".[DOCS]"
- name: Publish the documentation
run: mkdocs gh-deploy --force --dirty
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<img width=50% src="docs/assets/images/logo.png" alt="Fast-LLM Logo"></img>

[![Docker Build][docker-badge]][docker]
[![Documentation Build][docs-badge]][docs]
[![Docker][ci-badge]][ci]
[![Documentation][docs-badge]][docs]
[![License][license-badge]][license]

*Accelerating your LLM training to full speed*
Expand Down Expand Up @@ -144,10 +144,10 @@ For security issues, email [[email protected]](mailto:psirt-oss@serviceno
[roadmap]: https://github.com/ServiceNow/Fast-LLM/milestones
[issues]: https://github.com/ServiceNow/Fast-LLM/issues
[docker-badge]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/build-and-push-docker.yaml/badge.svg
[docker]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/build-and-push-docker.yaml
[docs-badge]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/deploy-documentation.yaml/badge.svg
[docs]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/deploy-documentation.yaml
[ci-badge]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/ci.yaml/badge.svg
[ci]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/ci.yaml
[docs-badge]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/docs.yaml/badge.svg
[docs]: https://github.com/ServiceNow/Fast-LLM/actions/workflows/docs.yaml
[license-badge]: https://img.shields.io/badge/License-Apache%202.0-blue.svg
[license]: LICENSE
[servicenow-research]: https://www.servicenow.com/research/
Expand Down
7 changes: 0 additions & 7 deletions requirements-doc.txt

This file was deleted.

9 changes: 9 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ DEV =
pytest>=8.3.2
pytest-depends>=1.0.1

# Required for building the documentation
DOCS =
mkdocs
mkdocs-material
mkdocs-material[imaging]
mkdocs-section-index
mkdocstrings[python]
mkdocs-git-committers-plugin-2
mkdocs-git-revision-date-localized-plugin

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit 79ad5bf

Please sign in to comment.