Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEVOPS-256] Clean up after each job in Windows self-hosted runners #660

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,18 @@ jobs:
python-version: ${{ matrix.python[1] }}

- name: Install wheel
run: python3 -m pip install aerospike --force-reinstall --no-index --find-links=./
run: python3 -m pip install aerospike --no-index --find-links=./

- run: python3 -m pip install pytest -c requirements.txt
working-directory: test

# TODO: bug: inputs are not passed in. Just fix this in the refactoring PR
- uses: ./.github/actions/run-ee-server
with:
use-server-rc: ${{ inputs.use-server-rc }}
server-tag: ${{ inputs.server-tag }}
docker-hub-username: ${{ secrets.DOCKER_HUB_BOT_USERNAME }}
docker-hub-password: ${{ secrets.DOCKER_HUB_BOT_PW }}

- name: Connect to Docker container on remote machine with Docker daemon
# DOCKER_HOST contains the IP address of the remote machine
Expand All @@ -539,12 +544,6 @@ jobs:
- run: python3 -m pytest new_tests/
working-directory: test

- name: Cleanup
if: ${{ always() }}
run: |
docker stop aerospike
docker container rm aerospike

- name: Show job status for commit
if: ${{ always() && github.event_name != 'push' && github.event_name != 'pull_request' }}
uses: myrotvorets/[email protected]
Expand Down
Loading