Skip to content

Commit

Permalink
tics: Fixes TICS nightly job
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiubelu committed Jan 16, 2025
1 parent 7560474 commit 60f8545
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 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,11 @@ jobs:
- name: Checking out repo
uses: actions/checkout@v4

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

- name: Install Go
uses: actions/setup-go@v5
with:
Expand All @@ -33,8 +39,16 @@ 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/[email protected]
. <(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/')
# pylint and flake8 are required by TICSQServer
# pylint requires the packages to be installed.
pip install pylint flake8
pip install -r requirements.txt -r tests/requirements-dev.txt -r tests/requirements-test.txt
TICSQServer -project ${{ github.event.repository.name }} -tmpdir /tmp/tics -branchdir "$GITHUB_WORKSPACE"

0 comments on commit 60f8545

Please sign in to comment.