Skip to content

Commit

Permalink
tics: Fixes TICS nightly job
Browse files Browse the repository at this point in the history
We don't have any unit tests for this project, but TICS expects the
cover folder to exist.

TICS will try to use pylint and flake8 to analyze the project's code.
We need to install them beforehand.

Signed-off-by: Claudiu Belu <claudiu.belu@canonical.com>
  • Loading branch information
claudiubelu committed Jan 17, 2025
1 parent 7560474 commit b11196b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cron-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Security and quality nightly scan
on:
schedule:
- cron: '0 10 * * *'
pull_request:

permissions:
contents: read
Expand All @@ -22,6 +23,21 @@ jobs:
- name: Checking out repo
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install Python dependencies
run: |
# pylint and flake8 are required by TICSQServer.
pip install pylint flake8 pytest
sudo apt install libbtrfsutil-dev
pip wheel -w wheels/ "https://github.com/kdave/btrfs-progs/archive/refs/tags/v6.3.2.tar.gz#egg=btrfsutil&subdirectory=libbtrfsutil/python"
pip install wheels/*
pip install -r requirements.txt
- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -33,6 +49,9 @@ jobs:
set -x
# We don't have any unit tests for this project, but TICS expects this folder to exist.
mkdir -p cover
# Install the TICS and staticcheck
go install honnef.co/go/tools/cmd/staticcheck@v0.5.1
. <(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/')
Expand Down

0 comments on commit b11196b

Please sign in to comment.