-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (50 loc) · 1.72 KB
/
tiobe_scan.yaml
File metadata and controls
62 lines (50 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.
name: TICS run self-hosted test (github-action)
on:
schedule:
- cron: "0 2 * * 6" # Every Saturday 2:00 AM UTC
workflow_dispatch:
jobs:
tiobe-scan:
name: Tiobe scan
runs-on: [self-hosted, tiobe]
timeout-minutes: 60
steps:
- name: Checkout the project
uses: actions/checkout@v6
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-venv
sudo apt-get install -y libpq-dev python3-dev
- name: Install pipx
run: python3 -m pip install --user pipx && python3 -m pipx ensurepath
- name: Add pipx to PATH
run: echo "${HOME}/.local/bin" >> "${GITHUB_PATH}"
- name: Install tox and poetry using pipx
run: |
pipx install tox
pipx install poetry
- name: Create and activate virtual environment
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install flake8 poetry pylint pytest tox
poetry install --all-groups
echo PATH="$PATH" >> "$GITHUB_ENV"
- name: Run tox tests to create coverage.xml
run: tox run -e unit
- name: Move results to necessary folder for TICS
run: |
mkdir -p cover
mv coverage.xml cover/coverage.xml
- name: Run TICS analysis with github-action
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: kyuubi-k8s-operator
branchdir: .
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true