Skip to content

Commit 49ed548

Browse files
committed
[PRA-264] Fix TIOBE workflow (#212)
* ci: Exclude unit test requiring skopeo from tiobe workflow * ci: Streamline tiobe workflow
1 parent dd9e0d1 commit 49ed548

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/tiobe_scan.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Copyright 2025 Canonical Ltd.
22
# See LICENSE file for licensing details.
33

4-
54
name: TICS run self-hosted test (github-action)
65

76
on:
@@ -23,15 +22,9 @@ jobs:
2322

2423
- name: Install system dependencies
2524
run: |
26-
sudo apt-get update
27-
sudo apt-get install -y python3-venv
28-
sudo apt-get install -y libpq-dev python3-dev
29-
30-
- name: Install pipx
31-
run: python3 -m pip install --user pipx && python3 -m pipx ensurepath
32-
33-
- name: Add pipx to PATH
34-
run: echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
25+
sudo apt update
26+
sudo apt install -y libpq-dev pipx python3-dev python3-venv
27+
pipx ensurepath
3528
3629
- name: Install tox and poetry using pipx
3730
run: |
@@ -47,7 +40,7 @@ jobs:
4740
echo PATH="$PATH" >> "$GITHUB_ENV"
4841
4942
- name: Run tox tests to create coverage.xml
50-
run: tox run -e unit
43+
run: tox run -e unit -- -m "not skopeo"
5144

5245
- name: Move results to necessary folder for TICS
5346
run: |
@@ -62,4 +55,4 @@ jobs:
6255
branchdir: .
6356
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
6457
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
65-
installTics: true
58+
installTics: true

tests/unit/test_components_refresh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def inspect_image(skopeo: str, image: str) -> dict:
1919
return json.loads(out)
2020

2121

22-
@pytest.mark.slow
22+
@pytest.mark.skopeo
2323
def test_images_same_spark_version(skopeo: str) -> None:
2424
# Given
2525
charm_workload_image = METADATA["resources"]["kyuubi-image"]["upstream-source"]

0 commit comments

Comments
 (0)