-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.41 KB
/
docs-test.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
44
45
46
47
48
49
50
51
52
# ---------------------------------------------------------------------------------------------
# MIT License
# Copyright (c) 2022, Solace Corporation, Ricardo Gomez-Ulmke ([email protected])
# ---------------------------------------------------------------------------------------------
name: docs-test
on:
# testing
workflow_dispatch:
# production
pull_request:
branches:
- main
jobs:
docs_test:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ '3.8' ]
steps:
- name: Check Auth
if: github.event_name == 'workflow_dispatch' && github.actor != 'ricardojosegomezulmke'
run: |
echo "not authorized"
echo '::set-output name=IS_AUTHORIZED::false'
id: auth
- name: Cancel Workflow
if: ${{ always() && steps.auth.outputs.IS_AUTHORIZED == 'false' }}
uses: andymckay/[email protected]
- name: Checkout Current Branch
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: setup python matrix version
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install docs make dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/devel/docs.requirements.txt
- name: Make docs
run: |
cd docs
./make.sh
###
# The End.