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-255] CI/CD: Use setup-python action to install Python on Windows self-hosted runners #654

Merged
merged 3 commits into from
Jul 30, 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
14 changes: 9 additions & 5 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -506,20 +506,24 @@ jobs:
run: cp config.conf.template config.conf
working-directory: test

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python[1] }}

- name: Install wheel
run: python${{ matrix.python[1] }} -m pip install aerospike --force-reinstall --no-index --find-links=./
run: python3 -m pip install aerospike --force-reinstall --no-index --find-links=./
- name: Connect to Docker container on remote machine with Docker daemon
# DOCKER_HOST contains the IP address of the remote machine
run: |
python${{ matrix.python[1] }} -m pip install crudini==0.9.4
python3 -m pip install crudini==0.9.4
$env:DOCKER_HOST_IP = $env:DOCKER_HOST | foreach {$_.replace("tcp://","")} | foreach {$_.replace(":2375", "")}
python${{ matrix.python[1] }} -m crudini --set config.conf community-edition hosts ${env:DOCKER_HOST_IP}:3000
python3 -m crudini --set config.conf community-edition hosts ${env:DOCKER_HOST_IP}:3000
working-directory: test

- run: python${{ matrix.python[1] }} -m pip install pytest -c requirements.txt
- run: python3 -m pip install pytest -c requirements.txt
working-directory: test

- run: python${{ matrix.python[1] }} -m pytest new_tests/
- run: python3 -m pytest new_tests/
working-directory: test

- name: Cleanup
Expand Down
Loading