forked from openebs/rawfile-localpv
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7560474
commit 60f8545
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: Security and quality nightly scan | |
on: | ||
schedule: | ||
- cron: '0 10 * * *' | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
@@ -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: | ||
|
@@ -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" |