forked from anyoptimization/pymoo
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.11 KB
/
release.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
name: Release
on:
push:
branches:
- master
- release
- main
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Dependencies
run: |
pip install numpy
pip install -r tests/requirements.txt
- name: Install pymoo
run: |
pip install .
- name: Run Tests
run: |
cd tests
pytest -vv --maxfail 1 --overwrite test_docs.py
cd ..
- name: Create Documentation
run: |
cd docs
make html
- name: Upload Documentation
uses: trendyminds/github-actions-rsync@master
with:
RSYNC_OPTIONS: -avzr --delete --exclude '*.ipynb'
RSYNC_TARGET: /home/blankjul/pymoo.org/${BRANCH_NAME}
RSYNC_SOURCE: build/html/*
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}}