-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] Test building comprehensive docs
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_path=${{ github.repository }}:branch=${{ github.ref_name }}" ./run-qa-checks | ||
|
||
- name: Build docs in all formats | ||
run: PRODUCTION=1 make build VERSION=dev MODULES="repository_path=${{ github.repository }}:branch=${{ github.ref_name }}" |