Skip to content

Commit 60c55e8

Browse files
Fix integration test job collection (#1288)
* Fix integration test job collection charmcraft 4.0 removed `--list` from the `charmcraft test` command Use spread directly instead (charmcraft 3.0, when calling `charmcraft test --list`, called `spread -list`, so behavior should be the same [except maybe if spread snap is different version from spread charmcraft 3.0 was using]) * Install spread from github Spread snap appears to be abandoned; hasn't been updated since 2018
1 parent 132427e commit 60c55e8

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/integration_test.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,24 @@ jobs:
1919
uses: actions/checkout@v5
2020
- name: Set up environment
2121
run: |
22-
sudo snap install charmcraft --classic
22+
sudo snap install go --classic
23+
go install github.com/snapcore/spread/cmd/spread@latest
2324
pipx install tox poetry
2425
- name: Collect spread jobs
2526
id: collect-jobs
2627
shell: python
2728
run: |
2829
import json
30+
import pathlib
2931
import os
3032
import subprocess
3133
3234
spread_jobs = (
3335
subprocess.run(
34-
["charmcraft", "test", "--list", "github-ci"], capture_output=True, check=True, text=True
36+
[pathlib.Path.home() / "go/bin/spread", "-list", "github-ci"],
37+
capture_output=True,
38+
check=True,
39+
text=True,
3540
)
3641
.stdout.strip()
3742
.split("\n")

0 commit comments

Comments
 (0)