Skip to content

Commit

Permalink
docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Jan 4, 2024
1 parent 17cf5c6 commit 3e10fdf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docs

on:
pull_request:
branches: [ dev, main ]
paths:
- 'luxonis_ml/**'
- .github/workflows/docs.yaml

jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Install dependencies
run: |
pip install -r docs/requirements.txt
curl -L "https://raw.githubusercontent.com/luxonis/python-api-analyzer-to-json/main/gen-docs.py" -o "gen-docs.py"
- name: Build docs
run: |
python gen-docs.py luxonis_ml
20 changes: 0 additions & 20 deletions .github/workflows/luxonis-ml-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ on:
type: string
description: "Source directory to monitor for coverage report"


jobs:
setup:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -55,29 +54,10 @@ jobs:
- uses: pre-commit/[email protected]

docs:
needs: pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Install dependencies
run: |
pip install -r docs/requirements.txt
curl -L "https://raw.githubusercontent.com/luxonis/python-api-analyzer-to-json/main/gen-docs.py" -o "gen-docs.py"
- name: Build docs
run: |
python gen-docs.py luxonis_ml
tests:
needs:
- setup
- pre-commit
- docs
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 3e10fdf

Please sign in to comment.