File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : TICS Code Quality Analysis
2
+ on :
3
+ schedule :
4
+ - cron : ' 00 19 * * *'
5
+ workflow_dispatch :
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ TICS :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout repo (main branch)
15
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
16
+ with :
17
+ ref : main
18
+ lfs : true
19
+ - name : Set up Python
20
+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
21
+ with :
22
+ python-version : " 3.12"
23
+ - name : Install dependencies
24
+ run : |
25
+ sudo apt update -qq
26
+ sudo apt install -y \
27
+ git-lfs \
28
+ libgl1 \
29
+ libxkbcommon-dev \
30
+ jq \
31
+ clang \
32
+ python3-tk
33
+
34
+ pip install uv
35
+
36
+ - name : Install TICS dependencies
37
+ run : |
38
+ pip install \
39
+ flake8 \
40
+ pylint
41
+
42
+ - name : Install YARF
43
+ run : |
44
+ uv venv
45
+ source .venv/bin/activate
46
+ echo PATH=$PATH >> $GITHUB_ENV
47
+ pip install .
48
+ pip install .[develop]
49
+
50
+ - name : Run test and coverage
51
+ run : |
52
+ uvx tox
53
+
54
+ - name : Rename coverage report for TICS
55
+ run : |
56
+ mkdir ./coverage
57
+ mv ./coverage.xml ./coverage/cobertura.xml
58
+
59
+ - name : TICS GitHub Action
60
+ uses : tiobe/tics-github-action@v3
61
+ with :
62
+ mode : qserver
63
+ project : yarf
64
+ viewerUrl : https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
65
+ branchdir : ${{ github.workspace }}
66
+ ticsAuthToken : ${{ secrets.TICSAUTHTOKEN }}
67
+ installTics : true
68
+ calc : ALL
You can’t perform that action at this time.
0 commit comments