Skip to content

Commit 402080c

Browse files
Update GHA workflows
1 parent fe42635 commit 402080c

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ on:
2222
value: ${{ jobs.build.outputs.artifact-prefix }}
2323

2424
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]
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

.github/workflows/integration_test.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
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: |

.github/workflows/tiobe_scan.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)