Merge pull request #70 from piiano/nhaas/bump_openapi_generator_version #59
This file contains hidden or 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: Build and Test Python | |
| on: | |
| push: | |
| paths: | |
| - python/** | |
| workflow_dispatch: | |
| workflow_call: | |
| secrets: | |
| PVAULT_SERVICE_LICENSE: | |
| required: true | |
| env: | |
| PVAULT_SERVICE_LICENSE: ${{ secrets.PVAULT_SERVICE_LICENSE }} | |
| jobs: | |
| test-python: | |
| name: Test Python - Getting Started. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check Out Repo. | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: piiano/vault-code-samples-getting-started | |
| - name: Install python | |
| uses: actions/setup-python@v4 | |
| - name: Prepare. | |
| working-directory: python | |
| run: ./prepare.sh | |
| - name: Start Vault and run tests. | |
| working-directory: python | |
| run: | | |
| shopt -s expand_aliases | |
| docker run --rm -d \ | |
| --name pvault-dev \ | |
| -p 8123:8123 \ | |
| -e PVAULT_SERVICE_LICENSE=${PVAULT_SERVICE_LICENSE} \ | |
| -e PVAULT_SENTRY_ENABLE=false \ | |
| -e PVAULT_LOG_DATADOG_ENABLE=none \ | |
| piiano/pvault-dev:latest | |
| alias pvault="docker run --rm -i --add-host='host.docker.internal:host-gateway' -v $(pwd):/pwd -w /pwd piiano/pvault-cli:latest" | |
| until pvault status > /dev/null 2>&1 | |
| do echo "Waiting for the vault to start ..." && sleep 1; done | |
| ./run.sh | |
| - name: Stop Vault. | |
| run: docker stop pvault-dev |