-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upload release package and modify the version and change log (#125)
* add upload package to pypi * add change log Co-authored-by: Yichen Wang <[email protected]>
- Loading branch information
1 parent
e167b7b
commit 98e08e4
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |