Skip to content

Commit e0fd454

Browse files
committed
Add drop database back in
1 parent b9feef5 commit e0fd454

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/smoke-test.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -129,30 +129,30 @@ jobs:
129129
SINGLESTOREDB_URL: "${{ matrix.driver }}://${{ secrets.CLUSTER_USER }}:${{ secrets.CLUSTER_PASSWORD }}@${{ needs.setup-database.outputs.cluster-host }}:443/${{ needs.setup-database.outputs.cluster-database }}?pure_python=${{ matrix.pure-python }}&buffered=${{ matrix.buffered }}"
130130

131131

132-
# shutdown-database:
133-
# needs: [setup-database, smoke-test]
134-
# if: ${{ always() }}
135-
# runs-on: ubuntu-20.04
136-
137-
# steps:
138-
# - uses: actions/checkout@v3
139-
140-
# - name: Install dependencies
141-
# run: |
142-
# python --version
143-
# python -m pip install --upgrade pip
144-
# pip install -r requirements.txt
145-
146-
# - name: Drop database
147-
# if: ${{ always() }}
148-
# run: |
149-
# python resources/drop_db.py --user "${{ secrets.CLUSTER_USER }}" --password "${{ secrets.CLUSTER_PASSWORD }}" --host "${{ needs.setup-database.outputs.cluster-host }}" --port 3306 --database "${{ needs.setup-database.outputs.cluster-database }}"
150-
# env:
151-
# PYTHONPATH: ${{ github.workspace }}
152-
153-
# - name: Shutdown workspace
154-
# if: ${{ always() }}
155-
# run: |
156-
# curl -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.CLUSTER_API_KEY }}" -X DELETE "https://api.singlestore.com/v1/workspaces/${{ env.CLUSTER_ID }}"
157-
# env:
158-
# CLUSTER_ID: ${{ needs.setup-database.outputs.cluster-id }}
132+
shutdown-database:
133+
needs: [setup-database, smoke-test]
134+
if: ${{ always() }}
135+
runs-on: ubuntu-20.04
136+
137+
steps:
138+
- uses: actions/checkout@v3
139+
140+
- name: Install dependencies
141+
run: |
142+
python --version
143+
python -m pip install --upgrade pip
144+
pip install -r requirements.txt
145+
146+
- name: Drop database
147+
if: ${{ always() }}
148+
run: |
149+
python resources/drop_db.py --user "${{ secrets.CLUSTER_USER }}" --password "${{ secrets.CLUSTER_PASSWORD }}" --host "${{ needs.setup-database.outputs.cluster-host }}" --port 3306 --database "${{ needs.setup-database.outputs.cluster-database }}"
150+
env:
151+
PYTHONPATH: ${{ github.workspace }}
152+
153+
- name: Shutdown workspace
154+
if: ${{ always() }}
155+
run: |
156+
curl -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.CLUSTER_API_KEY }}" -X DELETE "https://api.singlestore.com/v1/workspaces/${{ env.CLUSTER_ID }}"
157+
env:
158+
CLUSTER_ID: ${{ needs.setup-database.outputs.cluster-id }}

0 commit comments

Comments
 (0)