-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (37 loc) · 1.09 KB
/
nightly-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
name: Nightly TICS scan
on:
schedule:
- cron: '15 17 * * *' # Every day at 17:15 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
TICS:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install requirements
run: |
sudo apt update -y
sudo apt install python3-venv -y
- name: Create and activate virtual environment
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install tox pylint flake8 pytest pyyaml
pip install --requirement test-requirements.txt
echo PATH=$PATH >> $GITHUB_ENV
- name: Run coverage tests
run: |
tox -e unit
- name: TICS GitHub Action
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: slurm-charms
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
branchdir: ${{ env.GITHUB_WORKSPACE }}
ticsAuthToken: ${{ secrets.TICS_AUTH_TOKEN }}
installTics: true
calc: ALL