Skip to content

Commit

Permalink
Runs spel tests in python3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed Dec 30, 2024
1 parent 8e3cf4c commit e121aa9
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tests/minimal-linux.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ build {
source = "tests/"
}

provisioner "file" {
destination = "/tmp/spel/tests/Makefile"
direction = "upload"
pause_before = "5s"
source = "Makefile"
}

provisioner "shell" {
environment_vars = [
"PYPI_URL=${var.spel_pypi_url}",
Expand All @@ -164,9 +171,15 @@ build {
inline = [
"PYPI_URL=$${PYPI_URL:-https://pypi.org/simple}",
"ls -alR /tmp",
"python3 -m ensurepip",
"python3 -m pip install --index-url=\"$PYPI_URL\" --upgrade pip setuptools",
"python3 -m pip install --index-url=\"$PYPI_URL\" -r /tmp/spel/tests/requirements.txt",
"make -C /tmp/spel/tests pyenv/install",
"make -C /tmp/spel/tests python312/install",
"pyenv global system $(pyenv versions | grep 3.12)",
"python --version",
"python3 --version",
"python3.12 --version",
"python3.12 -m ensurepip",
"python3.12 -m pip install --index-url=\"$PYPI_URL\" --upgrade pip setuptools",
"python3.12 -m pip install --index-url=\"$PYPI_URL\" -r /tmp/spel/tests/requirements.txt",
"for DEV in $(lsblk -ln | awk '/ part /{ print $1}'); do pvresize /dev/$${DEV} || true; done",
]
pause_before = "5s"
Expand Down

0 comments on commit e121aa9

Please sign in to comment.