Update settings.toml #147
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: ci | |
| on: [push, pull_request] | |
| jobs: | |
| deployment-test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.11 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to Docker Hub | |
| run: echo "${{ secrets.HARBOR_CLI_PASSWORD }}" | docker login cerit.io -u "${{ secrets.HARBOR_CLI_USERNAME }}" --password-stdin | |
| - name: run docker compose | |
| run: | | |
| docker compose --profile pulsar up -d --build | |
| - name: install flask | |
| run: pip install flask | |
| - name: run upload_server.py | |
| run: | | |
| python tests/upload_server.py & | |
| - name: instal pytest | |
| run: pip install pytest | |
| - name: pytest run smoke tests | |
| run: | | |
| pytest tests/smoke_tests.py | |
| - name: Set version from CHANGELOG | |
| id: version | |
| run: | | |
| version=$(bash ci/version.sh CHANGELOG.md) | |
| echo "::set-output name=version::$version" | |
| - name: Tag Docker image | |
| run: | | |
| docker tag tesp-api:latest cerit.io/tesp-api/tesp-api:${{ steps.version.outputs.version }} | |
| - name: Push Docker image | |
| run: | | |
| docker push cerit.io/tesp-api/tesp-api:${{ steps.version.outputs.version }} |