Skip to content

Commit

Permalink
Move end-to-end tests running to self-hosted runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkeroo committed Jan 22, 2025
1 parent 085135e commit def491d
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,13 @@ on:

jobs:
HIL-test:
runs-on: ubuntu-latest
runs-on: ['self-hosted', 'testbed-runner']

strategy:
matrix:
python-version: [3.12]

steps:
- name: Setup WireGuard
run: |
sudo apt install wireguard
echo "${{ secrets.WIREGUARD_PRIVATE_KEY }}" > privatekey
sudo ip link add dev wg0 type wireguard
sudo ip address add dev wg0 10.12.99.26 peer 10.12.99.1
sudo wg set wg0 listen-port 48123 private-key privatekey peer ${{ secrets.WIREGUARD_PUBLIC_KEY }} allowed-ips 10.12.99.1/32,10.12.99.26/32,10.12.0.0/16 endpoint "${{ secrets.WIREGUARD_PUBLIC_ENDPOINT }}"
sudo ip link set up dev wg0
sudo ip route add 10.12.0.0/16 dev wg0
- name: Clone HIL Framework
run: |
git clone https://oauth2:${{secrets.GITLAB_TOKEN}}@gitlab.luxonis.com/luxonis/hil_lab/hil_framework.git --recursive
Expand All @@ -71,10 +61,4 @@ jobs:
else
CMD="hil --testbed oak4-pro --wait --reservation-name $RESERVATION_NAME --commands 'cd /home/hil/depthai-nodes' 'git checkout main' 'git pull' 'source venv/bin/activate' 'pip install --extra-index-url ${{secrets.LUXONIS_EXTRA_INDEX_URL}} depthai==3.0.0a11' 'cd tests/end_to_end' 'source <(python setup_camera_ips.py)' 'export HUBAI_TEAM_SLUG=${{ secrets.HUBAI_TEAM_SLUG }}' 'export HUBAI_API_KEY=${{ secrets.HUBAI_API_KEY }}' 'python main.py -all' 'deactivate'"
fi
eval $CMD
- name: Stop WireGuard
if: always()
run: |
sudo ip link set down dev wg0
sudo ip link delete dev wg0
exec $CMD

0 comments on commit def491d

Please sign in to comment.