2222 - name : Set up Python
2323 uses : actions/setup-python@v4
2424 with :
25- python-version : ' 3.12 '
25+ python-version : ' 3.10 '
2626
2727 - name : Install uv
2828 run : pip install uv
@@ -40,16 +40,28 @@ jobs:
4040 source .venv/bin/activate
4141 ./run_tests
4242
43-
4443 build :
45- name : Build charms
44+ name : Build charm
4645 needs : unit-tests
47- uses : canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v39.1.0
48- with :
49- charmcraft-snap-channel : 3.x/stable
50- artifact-prefix : charm-packed
51- cache : false
52-
46+ runs-on : ubuntu-latest
47+ steps :
48+ - name : Checkout code
49+ uses : actions/checkout@v4
50+ - name : Set up Python
51+ uses : actions/setup-python@v4
52+ with :
53+ python-version : ' 3.10'
54+ - name : Install uv
55+ run : pip install uv
56+ - name : Install charmcraft
57+ run : sudo snap install charmcraft --classic --channel=3.x/stable
58+ - name : Pack charm
59+ run : charmcraft pack
60+ - name : Upload charm artifact
61+ uses : actions/upload-artifact@v3
62+ with :
63+ name : charm
64+ path : " *.charm"
5365
5466 channel :
5567 name : Select Charmhub channel
99111 id : download
100112 uses : actions/download-artifact@v3
101113 with :
102- name : ${{ needs.build.outputs.artifact-name }}
114+ name : charm
103115
104116 - name : Upload charm to Charmhub
105117 env :
@@ -127,7 +139,7 @@ jobs:
127139 id : download
128140 uses : actions/download-artifact@v3
129141 with :
130- name : ${{ needs.build.outputs.artifact-name }}
142+ name : charm
131143
132144 - name : Rename charm file
133145 run : |
@@ -187,4 +199,4 @@ jobs:
187199 juju status --format json
188200 juju debug-log -m controller
189201
190- # TODO: test integration with dashboard / ha-proxy
202+ # TODO: test integration with dashboard / ha-proxy
0 commit comments