Skip to content

Commit

Permalink
Use the correct snap when upgrading
Browse files Browse the repository at this point in the history
  • Loading branch information
k8s-bot committed Sep 27, 2024
1 parent c74b9f5 commit e33d2a1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/nightly-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ name: Nightly Latest/Edge Tests
on:
schedule:
- cron: '0 0 * * *' # Runs every midnight
pull_request:

permissions:
contents: read

jobs:
test-integration:
name: Integration Test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.releases }}
name: Integration Test ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.release }}
strategy:
matrix:
os: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"]
arch: ["amd64", "arm64"]
releases: ["latest/edge"]
release: ["latest/edge"]
fail-fast: false # TODO: remove once arm64 works

runs-on: ${{ matrix.arch == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-20.04' }}

steps:
- name: Checking out repo
uses: actions/checkout@v4
- name: Setup Python
run: |
sudo apt update
sudo apt install -y python3 python3-pip
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install tox
run: |
pip3 install tox==4.13
run: pip install tox
- name: Install lxd
run: |
sudo snap refresh lxd --channel 5.21/stable
Expand All @@ -37,13 +37,13 @@ jobs:
sg lxd -c 'lxc version'
- name: Create build directory
run: mkdir -p build
- name: Install $${ matrix.releases }} k8s snap
- name: Install ${{ matrix.release }} k8s snap
run: |
cd build
snap download k8s --channel=${{ matrix.releases }} --basename k8s
snap download k8s --channel=${{ matrix.release }} --basename k8s
- name: Run end to end tests # tox path needs to be specified for arm64
env:
TEST_SNAP: ${{ github.workspace }}/build/k8s-${{ matrix.patch }}.snap
TEST_SNAP: ${{ github.workspace }}/build/k8s.snap
TEST_SUBSTRATE: lxd
TEST_LXD_IMAGE: ${{ matrix.os }}
TEST_INSPECTION_REPORTS_DIR: ${{ github.workspace }}/inspection-reports
Expand All @@ -52,4 +52,4 @@ jobs:
TEST_VERSION_UPGRADE_CHANNELS: "recent 6 classic"
run: |
export PATH="/home/runner/.local/bin:$PATH"
cd tests/integration && sg lxd -c 'tox -e integration'
cd tests/integration && sg lxd -c 'tox -evv integration'

0 comments on commit e33d2a1

Please sign in to comment.