forked from cyberbotics/webots
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.02 KB
/
tests_doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test Doc
on:
pull_request:
types: [opened, synchronize, reopened, labeled, unlabeled]
schedule:
- cron: '0 22 * * *'
defaults:
run:
shell: bash
jobs:
job-skipper:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
paths: '["docs/**"]'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
test-doc:
needs: job-skipper
if: needs.job-skipper.outputs.should_skip != 'true'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Tests
run: |
pip install -r docs/tests/requirements.txt
export WEBOTS_HOME=$PWD
python -m unittest discover -s docs/tests