NebulaGraph Python client v3.5.0 #35
Workflow file for this run
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
name: Upload package to pypi | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
ci: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: '3.x' | |
cache: true | |
- name: Install dependencies | |
run: pdm install | |
- name: Test with pytest | |
run: | | |
docker-compose -f tests/docker-compose.yaml up -d | |
sleep 20 | |
pdm test | |
- name: Test SSL connection with pytest | |
run: | | |
enable_ssl=true docker-compose -f tests/docker-compose-ssl.yaml up -d | |
sleep 20 | |
pdm test-ssl | |
- name: Build and publish | |
env: | |
PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_NAME }} | |
PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | |
run: pdm publish |