-
Notifications
You must be signed in to change notification settings - Fork 4
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
0c3e752
commit a7b2633
Showing
3 changed files
with
47 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Nightly TICS scan | ||
|
||
on: | ||
schedule: | ||
- cron: '03 05 * * *' # Every day at 05:03 UTC | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
TICS: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install requirements | ||
run: | | ||
sudo apt update -y | ||
sudo apt install python3-venv -y | ||
- name: Create and activate virtual environment | ||
run: | | ||
python3 -m venv .venv | ||
. .venv/bin/activate | ||
pip install tox pylint flake8 | ||
pip install --requirement requirements.txt | ||
pip install --requirement dev-requirements.txt | ||
echo PATH=$PATH >> $GITHUB_ENV | ||
- name: Run coverage tests | ||
run: | | ||
tox -e unit | ||
- name: TICS GitHub Action | ||
uses: tiobe/tics-github-action@v3 | ||
with: | ||
mode: qserver | ||
project: hpc-libs | ||
viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default | ||
branchdir: ${{ env.GITHUB_WORKSPACE }} | ||
ticsAuthToken: ${{ secrets.TICS_AUTH_TOKEN }} | ||
installTics: true | ||
calc: ALL |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ __pycache__/ | |
*.py[cod] | ||
.idea | ||
.vscode/ | ||
cover |
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