This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
Nightly TICS scan #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly TICS scan | |
on: | |
schedule: | |
- cron: '11 21 * * *' # Every day at 21:11 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 pyfakefs | |
pip install --requirement 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: nfs-client-operator | |
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default | |
branchdir: ${{ env.GITHUB_WORKSPACE }} | |
ticsAuthToken: ${{ secrets.TICS_AUTH_TOKEN }} | |
installTics: true | |
calc: ALL |