[rel] bump to v.027 #121
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
name: Codescanner | |
on: | |
push: | |
branches: | |
- 'master' | |
- 'devel' | |
jobs: | |
codecov: | |
name: Codecov Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@master | |
with: | |
python-version: 3.9 | |
- name: Generate coverage report | |
run: | | |
python -m pip install --upgrade pip | |
pip install lxml beautifulsoup4 html5lib | |
pip install pytest | |
pip install pytest-cov | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage.xml | |
flags: unittests | |
#sonarcloud: | |
# name: SonarCloud Analysis | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | |
# - name: SonarCloud Scan | |
# uses: SonarSource/sonarcloud-github-action@master | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | |
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
sonarcloud: | |
name: SonarCloud Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install pytest coverage and any other packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest coverage lxml beautifulsoup4 html5lib bs4 | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: run coverage | |
run: | | |
pip install pytest-cov | |
pytest --cov=./ --cov-report=xml | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
codeql: | |
name: CodeQL Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# We must fetch at least the immediate parents so that if this is | |
# a pull request then we can checkout the head. | |
fetch-depth: 2 | |
# If this run was triggered by a pull request event, then checkout | |
# the head of the pull request instead of the merge commit. | |
- run: git checkout HEAD^2 | |
if: ${{ github.event_name == 'pull_request' }} | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: python | |
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | |
# If this step fails, then you should remove it and run the build manually (see below) | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v2 | |
# ℹ️ Command-line programs to run using the OS shell. | |
# 📚 https://git.io/JvXDl | |
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | |
# and modify them (or add more) to build your code if your project | |
# uses a compiled language | |
#- run: | | |
# make bootstrap | |
# make release | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
ossarscan: | |
name: OSSAR-Scan | |
# OSSAR runs on windows-latest. | |
# ubuntu-latest and macos-latest support coming soon | |
runs-on: windows-latest | |
steps: | |
# Checkout your code repository to scan | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# We must fetch at least the immediate parents so that if this is | |
# a pull request then we can checkout the head. | |
fetch-depth: 2 | |
# If this run was triggered by a pull request event, then checkout | |
# the head of the pull request instead of the merge commit. | |
- run: git checkout HEAD^2 | |
if: ${{ github.event_name == 'pull_request' }} | |
# Ensure a compatible version of dotnet is installed. | |
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201. | |
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action. | |
# Remote agents already have a compatible version of dotnet installed and this step may be skipped. | |
# For local agents, ensure dotnet version 3.1.201 or later is installed by including this action: | |
# - name: Install .NET | |
# uses: actions/setup-dotnet@v1 | |
# with: | |
# dotnet-version: '3.1.x' | |
# Run open source static analysis tools | |
- name: Run OSSAR | |
uses: github/ossar-action@v1 | |
id: ossar | |
# Upload results to the Security tab | |
- name: Upload OSSAR results | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: ${{ steps.ossar.outputs.sarifFile }} |