From 534cd4eeb5fb4e4b2a5296e25cf5906750d2ada4 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Mon, 6 Sep 2021 22:34:05 +0530 Subject: [PATCH] Add CI for docs and ABOUT files Adds GitHub actions CI for docs and about files. Signed-off-by: Ayan Sinha Mahapatra --- .github/workflows/ci-about-files.yml | 39 ++++++++++++++++++++++++++++ .github/workflows/ci-docs.yml | 37 ++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 .github/workflows/ci-about-files.yml create mode 100644 .github/workflows/ci-docs.yml diff --git a/.github/workflows/ci-about-files.yml b/.github/workflows/ci-about-files.yml new file mode 100644 index 00000000000..27545625517 --- /dev/null +++ b/.github/workflows/ci-about-files.yml @@ -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 diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.yml new file mode 100644 index 00000000000..a0ea74d3458 --- /dev/null +++ b/.github/workflows/ci-docs.yml @@ -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 +