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:
24
.github/workflows/test-doc.yml
vendored
Normal file
24
.github/workflows/test-doc.yml
vendored
Normal 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
|
||||||
3
.github/workflows/testing.yml
vendored
3
.github/workflows/testing.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
@@ -21,7 +21,6 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -r tests-requirements.txt
|
pip install -r tests-requirements.txt
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
npm install -g remark-cli remark-validate-links
|
|
||||||
sudo apt-get install shellcheck
|
sudo apt-get install shellcheck
|
||||||
- name: Run with 1 worker
|
- name: Run with 1 worker
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
7
tests.sh
vendored
7
tests.sh
vendored
@@ -55,8 +55,11 @@ coverage combine coverages/*
|
|||||||
coverage xml
|
coverage xml
|
||||||
|
|
||||||
# test doc
|
# test doc
|
||||||
echo "checking documentation..."
|
if [ -z "${in_cicd}" ]; then
|
||||||
"${cur}"/scripts/check-doc.sh
|
# not in CI/CD
|
||||||
|
echo "checking documentation..."
|
||||||
|
"${cur}"/scripts/check-doc.sh
|
||||||
|
fi
|
||||||
|
|
||||||
## done
|
## done
|
||||||
echo "All tests finished successfully"
|
echo "All tests finished successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user