3939 mkdir -p ./test && cd ./test
4040 pip3 show -f eoxmagmod
4141 python3 -c 'import eoxmagmod' && python3 -m unittest discover -p '[a-z]*.py' -v eoxmagmod
42- notification :
42+ testing- notification :
4343 runs-on : ubuntu-20.04
4444 if : ${{ always() }}
4545 needs : testing
@@ -53,24 +53,42 @@ jobs:
5353 env :
5454 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
5555 if : always()
56- deploy :
56+ documentation-deployment :
5757 runs-on : ubuntu-20.04
5858 steps :
5959 - uses : actions/checkout@v2
60- - name : prepare docs
60+ - name : Install
6161 run : |
6262 python3 --version
6363 sudo apt-get install gfortran
6464 sudo apt-get install libhdf5-dev
6565 ( cd libcdf && make build && sudo make install )
66- ( cd qdipole && ./configure && make build && sudo make install )
66+ ( cd qdipole && ./configure && make build && sudo make install && make test )
67+ pip3 install --upgrade pip
68+ pip3 install wheel
6769 pip3 install scipy
70+ pip3 install spacepy --no-build-isolation
6871 pip3 install ./eoxmagmod/
6972 pip3 install -r requirements-docs.txt
73+ - name : Build Documentation
74+ run : |
7075 make html BUILDDIR=../public -C docs
7176 mv ./public/html/* ./public/
72- - name : Deploy github pages
77+ - name : Deploy GitHub Pages
7378 uses : JamesIves/github-pages-deploy-action@v4
7479 with :
7580 folder : public
76- note :
81+ documentation-deployment-notification :
82+ runs-on : ubuntu-20.04
83+ if : ${{ always() }}
84+ needs : documentation-deployment
85+ steps :
86+ # send Slack notifications to the eox organization
87+ - name : action-slack
88+ uses : 8398a7/action-slack@v3
89+ with :
90+ status : ${{ needs.testing.result }}
91+ fields : repo,message,commit,author,action,eventName,ref,workflow,job,took
92+ env :
93+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
94+ if : always()
0 commit comments