-
-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds GitHub actions CI for docs and about files. Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
- Loading branch information
1 parent
8324538
commit 534cd4e
Showing
2 changed files
with
76 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,39 @@ | ||
name: CI About Files | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.7] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Configure VirtualEnv | ||
run: ./configure --dev | ||
|
||
- name: Activate VirtualEnv | ||
run: source bin/activate | ||
|
||
#- name: Check About Files in thirdparty | ||
# run: ./bin/about check thirdparty/ | ||
|
||
- name: Check About Files in thirdparty | ||
run: ./bin/about check src/ | ||
|
||
- name: Check About Files in thirdparty | ||
run: ./bin/about check etc/ | ||
|
||
- name: Check About Files in thirdparty | ||
run: ./bin/about check scancode-toolkit.ABOUT |
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,37 @@ | ||
name: CI Documentation | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.7] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Give permission to run scripts | ||
run: chmod +x ./docs/scripts/doc8_style_check.sh | ||
|
||
- name: Install Dependencies | ||
working-directory: ./docs | ||
run: pip install -r requirements.txt | ||
|
||
- name: Check Sphinx Documentation build minimally | ||
working-directory: ./docs | ||
run: sphinx-build -E source build | ||
|
||
- name: Check for documentation style errors | ||
working-directory: ./docs | ||
run: ./scripts/doc8_style_check.sh | ||
|