File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 22
22
value : ${{ jobs.build.outputs.artifact-prefix }}
23
23
24
24
jobs :
25
+ # TODO install uv in reusable and re-enable
26
+ # lint:
27
+ # name: Lint
28
+ # uses: canonical/data-platform-workflows/.github/workflows/[email protected]
25
29
lint :
26
30
name : Lint
27
- uses :
canonical/data-platform-workflows/.github/workflows/[email protected]
31
+ runs-on : ubuntu-latest
32
+ timeout-minutes : 5
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v4
36
+ - name : Install tox & uv
37
+ run : |
38
+ pipx install tox
39
+ pipx install uv
40
+ - name : Run linters
41
+ run : tox run -e lint
28
42
29
43
unit-test :
30
44
name : Unit test charm
@@ -33,10 +47,10 @@ jobs:
33
47
steps :
34
48
- name : Checkout
35
49
uses : actions/checkout@v4
36
- - name : Install tox & poetry
50
+ - name : Install tox & uv
37
51
run : |
38
52
pipx install tox
39
- pipx install poetry
53
+ pipx install uv
40
54
- name : Run tests
41
55
run : tox run -e unit
42
56
- name : Upload Coverage to Codecov
Original file line number Diff line number Diff line change 20
20
- name : Set up environment
21
21
run : |
22
22
sudo snap install charmcraft --classic
23
- pipx install tox poetry
23
+ pipx install tox
24
+ pipx install uv
24
25
- name : Collect spread jobs
25
26
id : collect-jobs
26
27
shell : python
@@ -100,7 +101,9 @@ jobs:
100
101
uses : actions/checkout@v4
101
102
- name : Set up environment
102
103
timeout-minutes : 5
103
- run : sudo snap install charmcraft --classic
104
+ run : |
105
+ sudo snap install charmcraft --classic
106
+ sudo snap install astral-uv --classic
104
107
# TODO: remove when https://github.com/canonical/charmcraft/issues/2105 and
105
108
# https://github.com/canonical/charmcraft/issues/2130 fixed
106
109
- run : |
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
29
29
- name : Add pipx to PATH
30
30
run : echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
31
31
32
- - name : Install tox and poetry using pipx
32
+ - name : Install tox and uv
33
33
run : |
34
34
pipx install tox
35
- pipx install poetry
35
+ pipx install uv
36
36
37
37
- name : Run tox tests to create coverage.xml
38
38
run : tox run -e unit
You can’t perform that action at this time.
0 commit comments