Skip to content

Commit

Permalink
Add upload release package and modify the version and change log (#125)
Browse files Browse the repository at this point in the history
* add upload package to pypi

* add change log

Co-authored-by: Yichen Wang <[email protected]>
  • Loading branch information
laura-ding and Aiee authored Aug 18, 2021
1 parent e167b7b commit 98e08e4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/deploy_release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 -r requirements-dev.txt
- name: Test with pytest
run: |
mkdir tmp
pushd tmp
git clone https://github.com/vesoft-inc/nebula-docker-compose.git
pushd nebula-docker-compose/
cp ../../tests/docker-compose.yaml ./
docker-compose up -d
sleep 60
popd
popd
cd tests
pytest -s -v
- 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/*

0 comments on commit 98e08e4

Please sign in to comment.