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 2222 value : ${{ jobs.build.outputs.artifact-prefix }}
2323
2424jobs :
25+ # TODO install uv in reusable and re-enable
26+ # lint:
27+ # name: Lint
28+ # uses: canonical/data-platform-workflows/.github/workflows/[email protected] 2529 lint :
2630 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
2842
2943 unit-test :
3044 name : Unit test charm
@@ -33,10 +47,10 @@ jobs:
3347 steps :
3448 - name : Checkout
3549 uses : actions/checkout@v4
36- - name : Install tox & poetry
50+ - name : Install tox & uv
3751 run : |
3852 pipx install tox
39- pipx install poetry
53+ pipx install uv
4054 - name : Run tests
4155 run : tox run -e unit
4256 - name : Upload Coverage to Codecov
Original file line number Diff line number Diff line change 2020 - name : Set up environment
2121 run : |
2222 sudo snap install charmcraft --classic
23- pipx install tox poetry
23+ pipx install tox
24+ pipx install uv
2425 - name : Collect spread jobs
2526 id : collect-jobs
2627 shell : python
@@ -100,7 +101,9 @@ jobs:
100101 uses : actions/checkout@v4
101102 - name : Set up environment
102103 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
104107 # TODO: remove when https://github.com/canonical/charmcraft/issues/2105 and
105108 # https://github.com/canonical/charmcraft/issues/2130 fixed
106109 - run : |
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
2929 - name : Add pipx to PATH
3030 run : echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
3131
32- - name : Install tox and poetry using pipx
32+ - name : Install tox and uv
3333 run : |
3434 pipx install tox
35- pipx install poetry
35+ pipx install uv
3636
3737 - name : Run tox tests to create coverage.xml
3838 run : tox run -e unit
You can’t perform that action at this time.
0 commit comments