Skip to content

Commit

Permalink
[DEVOPS-255] CI/CD: Use setup-python action to install Python on Wind…
Browse files Browse the repository at this point in the history
…ows self-hosted runners (#654)

* Replaces Python installation from choco package manager
  • Loading branch information
juliannguyen4 authored Jul 30, 2024
1 parent 77ffe30 commit fe0b05d
Showing 1 changed file with 9 additions and 5 deletions.
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

0 comments on commit fe0b05d

Please sign in to comment.