Skip to content

Commit 34e2846

Browse files
authored
Update master.yml
1 parent 4d1bd0e commit 34e2846

1 file changed

Lines changed: 40 additions & 47 deletions

File tree

.github/workflows/master.yml

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,9 @@ jobs:
2929
python -m pip install --upgrade pip
3030
pip install flake8 pytest
3131
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
32-
# - name: Lint with flake8
33-
# run: |
34-
# # stop the build if there are Python syntax errors or undefined names
35-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
36-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
37-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3832
- name: Test with pytest
3933
env:
4034
MPLBACKEND: TkAgg
41-
uses: GabrielBB/xvfb-action@v1.2
4235
run: |
4336
pytest --ignore=W605
4437
@@ -66,43 +59,43 @@ jobs:
6659
uses: codecov/codecov-action@v1
6760
with:
6861
file: ./coverage.xml
69-
sphinx:
70-
# If the above worked:
71-
# Build docs and upload to GH Pages
72-
needs: unittest
73-
runs-on: ubuntu-latest
74-
steps:
75-
- uses: actions/checkout@v2
76-
- name: Set up Python 3.7
77-
uses: actions/setup-python@v1
78-
with:
79-
python-version: 3.7
80-
- name: Install dependencies
81-
run: |
82-
python -m pip install --upgrade pip
83-
pip install -r requirements.txt
84-
pip install .
85-
- name: Build docs
86-
run: |
87-
cd docs
88-
make html
89-
# Tell GitHub not to use jekyll to compile the docs
90-
touch build/html/.nojekyll
91-
cd ../
92-
- name: Commit documentation changes
93-
run: |
94-
git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages
95-
cp -r docs/build/html/* gh-pages/
96-
cd gh-pages
97-
git config --local user.email "action@github.com"
98-
git config --local user.name "GitHub Action"
99-
git add .
100-
git commit -m "Update documentation" -a || true
101-
# The above command will fail if no changes were present, so we ignore
102-
# that.
103-
- name: Push changes
104-
uses: ad-m/github-push-action@master
105-
with:
106-
branch: gh-pages
107-
directory: gh-pages
108-
github_token: ${{ secrets.GITHUB_TOKEN }}
62+
# sphinx:
63+
# # If the above worked:
64+
# # Build docs and upload to GH Pages
65+
# needs: unittest
66+
# runs-on: ubuntu-latest
67+
# steps:
68+
# - uses: actions/checkout@v2
69+
# - name: Set up Python 3.7
70+
# uses: actions/setup-python@v1
71+
# with:
72+
# python-version: 3.7
73+
# - name: Install dependencies
74+
# run: |
75+
# python -m pip install --upgrade pip
76+
# pip install -r requirements.txt
77+
# pip install .
78+
# - name: Build docs
79+
# run: |
80+
# cd docs
81+
# make html
82+
# # Tell GitHub not to use jekyll to compile the docs
83+
# touch build/html/.nojekyll
84+
# cd ../
85+
# - name: Commit documentation changes
86+
# run: |
87+
# git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages
88+
# cp -r docs/build/html/* gh-pages/
89+
# cd gh-pages
90+
# git config --local user.email "action@github.com"
91+
# git config --local user.name "GitHub Action"
92+
# git add .
93+
# git commit -m "Update documentation" -a || true
94+
# # The above command will fail if no changes were present, so we ignore
95+
# # that.
96+
# - name: Push changes
97+
# uses: ad-m/github-push-action@master
98+
# with:
99+
# branch: gh-pages
100+
# directory: gh-pages
101+
# github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)