forked from openebs/rawfile-localpv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
7560474
commit 6c72928
Showing
1 changed file
with
20 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,22 @@ jobs: | |
- name: Checking out repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name Install Python dependencies | ||
run: | | ||
# pylint and flake8 are required by TICSQServer | ||
pip install pylint flake8 | ||
# pylint requires the packages to be installed. | ||
apt install build-essential 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: | ||
|
@@ -33,6 +50,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/[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/') | ||
|