1- name : Testing and validation
1+ name : Tests and docs
22
33on : [push, pull_request]
44
55jobs :
6- test :
6+ tests :
7+ name : Tests
8+ uses : Bernardo-MG/github-workflow/.github/workflows/python_testing.yml@develop
79
8- runs-on : ubuntu-latest
9- strategy :
10- matrix :
11- python-version : [3.6, 3.7, 3.8, 3.9]
10+ deploy_develop_docs :
11+ name : Deploy development docs
12+ needs : tests
13+ uses : Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
14+ with :
15+ branch : develop
16+ host : docs.bernardomg.com
17+ secrets :
18+ port : ${{ secrets.DEPLOY_DOCS_DEVELOP_PORT }}
19+ path : ${{ secrets.DEPLOY_DOCS_DEVELOP_PATH }}
20+ username : ${{ secrets.DEPLOY_DOCS_DEVELOP_USER }}
21+ password : ${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }}
1222
13- steps :
14- - name : Check-out
15- uses : actions/checkout@v2
16- - name : Set up Python ${{ matrix.python-version }}
17- uses : actions/setup-python@v2
18- with :
19- python-version : ${{ matrix.python-version }}
20- - name : Install dependencies
21- run : |
22- python -m pip install --upgrade pip
23- pip install flake8 pytest
24- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25- - name : Run all tests
26- run : python setup.py test -p py${{ matrix.python-version }}
23+ deploy_docs :
24+ name : Deploy docs
25+ needs : tests
26+ uses : Bernardo-MG/github-workflow/.github/workflows/python_deploy_site.yml@develop
27+ with :
28+ branch : master
29+ host : docs.bernardomg.com
30+ secrets :
31+ port : ${{ secrets.DEPLOY_DOCS_PORT }}
32+ path : ${{ secrets.DEPLOY_DOCS_PATH }}
33+ username : ${{ secrets.DEPLOY_DOCS_USER }}
34+ password : ${{ secrets.DEPLOY_DOCS_PASSWORD }}
0 commit comments