Skip to content

Commit

Permalink
Add CI for docs and ABOUT files
Browse files Browse the repository at this point in the history
Adds GitHub actions CI for docs and about files.

Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
  • Loading branch information
AyanSinhaMahapatra committed Sep 6, 2021
1 parent 8324538 commit 534cd4e
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci-about-files.yml
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
37 changes: 37 additions & 0 deletions .github/workflows/ci-docs.yml
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

0 comments on commit 534cd4e

Please sign in to comment.