Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/tiobe_scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2025 Canonical Ltd.
# See LICENSE file for licensing details.

name: Weekly TICS scan

on:
schedule:
- cron: "0 2 * * 6" # Every Saturday 2:00 AM UTC
workflow_dispatch:

jobs:
TICS:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- 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 coverage tests
run: |
tox -e unit

- name: Move results to the necessary folder for TICS
run: |
mkdir -p .cover
mv coverage.xml .cover/cobertura.xml

- name: TICS GitHub Action
uses: tiobe/tics-github-action@v3
with:
mode: qserver
project: postgresql-operator
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default
branchdir: ${{ env.GITHUB_WORKSPACE }}
ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }}
installTics: true
calc: ALL
Loading