From 91f45851663f72516fe950fb63951b9b9b987bb2 Mon Sep 17 00:00:00 2001 From: M Umar Khan Date: Tue, 19 Jul 2022 16:47:09 +0500 Subject: [PATCH] build: add doc build check --- .github/workflows/docs-build-check.yml | 50 ++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/docs-build-check.yml diff --git a/.github/workflows/docs-build-check.yml b/.github/workflows/docs-build-check.yml new file mode 100644 index 0000000000..4cb5731677 --- /dev/null +++ b/.github/workflows/docs-build-check.yml @@ -0,0 +1,50 @@ +name: Docs build + +on: + pull_request: + push: + branches: + - master + +jobs: + tests: + name: Docs build + runs-on: ${{ matrix.os }} + strategy: + matrix: + python-version: ['3.8'] + os: ['ubuntu-20.04'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install system requirements + run: sudo apt update && sudo apt install -y libxmlsec1-dev + + - name: Install pip + run: python -m pip install -r requirements/pip.txt + + - name: Get pip cache dir + id: pip-cache-dir + run: echo "::set-output name=dir::$(pip cache dir)" + + - name: Cache pip dependencies + id: cache-dependencies + uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache-dir.outputs.dir }} + key: ${{ runner.os }}-pip-${{ hashFiles('requirements/edx/development.txt') }} + restore-keys: ${{ runner.os }}-pip- + + - name: Install python dependencies + run: pip install -r requirements/edx/development.txt + + - name: Install docs requirements + run: pip install -r requirements/edx/doc.txt + + - name: Docs build + run: make docs