-
Notifications
You must be signed in to change notification settings - Fork 46
56 lines (48 loc) · 1.45 KB
/
tics.yaml
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
name: TICS
on:
push:
branches:
- main
# to easy test changes to the workflow
- tiobe
jobs:
CI:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
echo "::group::apt-get update"
sudo apt-get update
echo "::endgroup::"
echo "::group::apt-get install..."
sudo apt-get install -y python3 python3-dev libapt-pkg-dev libyaml-dev umoci
echo "::endgroup::"
echo "::group::pip install"
python -m pip install -U wheel setuptools pip
python -m pip install -U -r requirements.txt -r requirements-dev.txt -r requirements-jammy.txt
echo "::endgroup::"
- name: Install project
run: |
python -m pip install -e .
- name: Run coverage
run: |
make coverage
- name: Upload test results
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-results-ubuntu-22.04
path: results/
- name: Run TICS analysis
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: rockcraft
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
branchdir: ${{ github.workspace }}
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true