1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 15:39:43 +00:00

dedicated doc links workflow

This commit is contained in:
deadc0de6
2024-06-27 09:14:13 +02:00
parent b831581f1f
commit c99d8be4e2
3 changed files with 30 additions and 4 deletions

24
.github/workflows/test-doc.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: test-doc
on: [push, pull_request, workflow_dispatch]
jobs:
test-doc:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests-requirements.txt
npm install -g remark-cli remark-validate-links
- name: Run with 1 worker
run: |
./scripts/check-doc.sh

View File

@@ -9,7 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Setup Node
@@ -21,7 +21,6 @@ jobs:
python -m pip install --upgrade pip
pip install -r tests-requirements.txt
pip install -r requirements.txt
npm install -g remark-cli remark-validate-links
sudo apt-get install shellcheck
- name: Run with 1 worker
run: |

7
tests.sh vendored
View File

@@ -55,8 +55,11 @@ coverage combine coverages/*
coverage xml
# test doc
echo "checking documentation..."
"${cur}"/scripts/check-doc.sh
if [ -z "${in_cicd}" ]; then
# not in CI/CD
echo "checking documentation..."
"${cur}"/scripts/check-doc.sh
fi
## done
echo "All tests finished successfully"