-
-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (43 loc) · 1.2 KB
/
pythonpackage.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
name: Python CI
on:
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: ./python-client-sphinx
- uses: actions/checkout@v2
with:
repository: appium/python-client
path: ./python-client
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Setup python-client
run: |
python -m pip install --upgrade pip
python setup.py install
working-directory: python-client
- name: Build doc
shell: bash -xe {0}
run: |
python -m pip install -r requirements.txt
bash generate.sh
working-directory: python-client/docs
- name: Check if PR needed
shell: bash -xe {0}
run: |
rm -r docs
cp -r ../python-client/docs/_build/html ./docs
git --no-pager diff --stat
if (git --no-pager diff --stat | grep -q "docs/_sources/index.rst.txt | 2 +-"); then exit 1; fi
working-directory: python-client-sphinx
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
path: ./python-client-sphinx