From dd21619228976712750a6edafc60a08f2eab761c Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Tue, 29 Nov 2022 02:24:45 +0900 Subject: Fix docs code block and separate docs tests --- .github/workflows/test-docs.yml | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 8 +++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test-docs.yml (limited to '.github') diff --git a/.github/workflows/test-docs.yml b/.github/workflows/test-docs.yml new file mode 100644 index 0000000..070ce7a --- /dev/null +++ b/.github/workflows/test-docs.yml @@ -0,0 +1,23 @@ +name: Test Documentation Build + +on: [push, pull_request] + +jobs: + test_docs: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - name: Install dependencies for docs + run: | + python -m pip install -r docs/requirements.txt + - name: Build documentation + run: | + cd docs && make clean && make html diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e62604e..5122986 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,12 @@ name: Test -on: [push, pull_request] +on: + push: + paths-ignore: + - 'docs/**' + pull_request: + paths-ignore: + - 'docs/**' jobs: test: -- cgit v1.2.3