Skip to content

Commit

Permalink
ci: add a workflow for TIOBE
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloegea committed Aug 12, 2024
1 parent ee0ca07 commit 7c9d49d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tiobe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "TIOBE/TiCS"

on:
schedule:
- cron: '0 0 * * TUE'

jobs:
coverity:
if: github.repository == 'canonical/netplan'
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates
sudo sed -i 's/Types: deb/Types: deb deb-src/g' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update
sudo apt build-dep -y netplan.io
sudo apt install -y gcovr python-is-python3 pylint flake8 python3-flake8
- name: Build Netplan
run: |
# The build directory must be called _build. TIOBE will look for coverage data in it.
meson setup _build --prefix=/usr -Db_coverage=true
meson compile -C _build -v
meson test -C _build -v
- name: Download and Install TICS
run: |
curl --silent --show-error "https://canonical.tiobe.com/tiobeweb/TICS/api/public/v1/fapi/installtics/Script?cfg=default&platform=linux&url=https://canonical.tiobe.com/tiobeweb/TICS/" > install_tics.sh
bash install_tics.sh
- name: Run TICS
run: |
export TICSAUTHTOKEN=${{ secrets.TICSAUTHTOKEN }}
source ~/.profile
TICSQServer -project netplan -branchname master -calc ALL -tmpdir /tmp/tics -branchdir . # wokeignore:rule=master

0 comments on commit 7c9d49d

Please sign in to comment.