Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Apr 1, 2024
1 parent 51ddaf9 commit 5741f03
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/alpine-unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@ jobs:
sudo sg incus-admin -c 'incus exec alpine -- ping -c 1 dl-cdn.alpinelinux.org || true'
sudo sg incus-admin -c 'incus exec alpine -- nslookup www.google.com || true'
sudo sg incus-admin -c 'incus exec alpine -- ping -c 1 dl-cdn.alpinelinux.org || true'
- name: Install dependencies
run: |
sudo sg incus-admin -c 'incus exec alpine -- apk add py3-tox git'
sudo sg incus-admin -c "incus exec alpine -- git clone --branch ${GITHUB_HEAD_REF} https://github.com/${GITHUB_REPOSITORY}.git"
sudo sg incus-admin -c "incus exec alpine -- cd cloud-init && git fetch origin +refs/pull/*:refs/remotes/origin/pr/*"
- name: Git the code
run: |
sudo sg incus-admin -c "incus exec alpine -- git clone https://github.com/${GITHUB_REPOSITORY}.git"
sudo sg incus-admin -c 'incus exec alpine -- cd cloud-init && git fetch origin +refs/pull/*:refs/remotes/origin/pr/*'
sudo sg incus-admin -c "incus exec alpine -- cd cloud-init && git checkout origin/pr/${GITHUB_REF_NAME}"
- name: Did the code work?
run: |
sudo sg incus-admin -c 'incus exec alpine -- tox -e py3 --root ~/cloud-init'

0 comments on commit 5741f03

Please sign in to comment.