39
39
mkdir -p ./test && cd ./test
40
40
pip3 show -f eoxmagmod
41
41
python3 -c 'import eoxmagmod' && python3 -m unittest discover -p '[a-z]*.py' -v eoxmagmod
42
- notification :
42
+ testing- notification :
43
43
runs-on : ubuntu-20.04
44
44
if : ${{ always() }}
45
45
needs : testing
@@ -53,24 +53,42 @@ jobs:
53
53
env :
54
54
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
55
55
if : always()
56
- deploy :
56
+ documentation-deployment :
57
57
runs-on : ubuntu-20.04
58
58
steps :
59
59
- uses : actions/checkout@v2
60
- - name : prepare docs
60
+ - name : Install
61
61
run : |
62
62
python3 --version
63
63
sudo apt-get install gfortran
64
64
sudo apt-get install libhdf5-dev
65
65
( 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
67
69
pip3 install scipy
70
+ pip3 install spacepy --no-build-isolation
68
71
pip3 install ./eoxmagmod/
69
72
pip3 install -r requirements-docs.txt
73
+ - name : Build Documentation
74
+ run : |
70
75
make html BUILDDIR=../public -C docs
71
76
mv ./public/html/* ./public/
72
- - name : Deploy github pages
77
+ - name : Deploy GitHub Pages
73
78
uses : JamesIves/github-pages-deploy-action@v4
74
79
with :
75
80
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