forked from vesoft-inc/nebula-python
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.03 KB
/
deploy_release.yaml
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
name: Upload package to pypi
on:
release:
types:
- published
jobs:
ci:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel twine
pip install .
pip install -r requirements/dev.txt
- name: Test with pytest
run: |
docker-compose -f docker-compose.yaml up -d
sleep 45
pytest -s -v -k "not SSL"
working-directory: tests
- name: Test SSL connection with pytest
run: |
enable_ssl=true docker-compose -f docker-compose-ssl.yaml up -d
sleep 45
pytest -s -v -k "SSL"
working-directory: tests
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_NAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 setup.py sdist bdist_wheel
twine upload dist/*