Skip to content

Commit

Permalink
[test] Test building comprehensive docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed May 22, 2024
1 parent 7675d56 commit d397fc1
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: OpenWISP Docs

on:
push:
branches:
- reorder-docs-ci
- master
pull_request:
branches:
- master

jobs:
build:
name: Python==3.10
runs-on: ubuntu-22.04

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v2
with:
repository: openwisp/openwisp2-docs
ref: issues/107-comprehensive-docs

- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Upgrade python system packages
run: pip install -U pip wheel

- name: Install test dependencies
run: |
pip install -U -r requirements.txt
pip install pylinkvalidator
- name: Install npm dependencies
run: sudo npm install -g stylelint

- name: QA checks
run: PRODUCTION=1 VERSION=dev MODULES="repository=${{ github.repository }}:branch=${{ github.ref_name }}" ./run-qa-checks

- name: Build docs in all formats
run: PRODUCTION=1 make build VERSION=dev MODULES="repository=${{ github.repository }}:branch=${{ github.ref_name }}"

0 comments on commit d397fc1

Please sign in to comment.