-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cmake_build_work
- Loading branch information
Showing
412 changed files
with
5,318 additions
and
4,806 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
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -35,6 +35,8 @@ jobs: | |
PYLINT_VERSION: "2.12.2" | ||
# renovate: datasource=pypi depName=bandit | ||
BANDIT_VERSION: "1.7.9" | ||
# renovate: datasource=pypi depName=ruff | ||
RUFF_VERSION: "0.5.2" | ||
|
||
runs-on: ${{ matrix.os }} | ||
permissions: | ||
|
@@ -50,17 +52,33 @@ jobs: | |
echo Flake8: ${{ env.FLAKE8_VERSION }} | ||
echo Pylint: ${{ env.PYLINT_VERSION }} | ||
echo Bandit: ${{ env.BANDIT_VERSION }} | ||
echo Ruff: ${{ env.RUFF_VERSION }} | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: pip | ||
- name: Upgrade pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install Ruff | ||
run: pip install ruff==${{ env.RUFF_VERSION }} | ||
- name: Run Ruff | ||
run: ruff check --output-format=github . --preview --fix --unsafe-fixes | ||
- name: Create and uploads code suggestions to apply for Ruff | ||
# Will fail fast here if there are changes required | ||
id: diff-ruff | ||
# To run after ruff step exits with failure when rules don't have fixes available | ||
if: ${{ !cancelled() }} | ||
uses: ./.github/actions/create-upload-suggestions | ||
with: | ||
tool-name: ruff | ||
# To keep repo's file structure in formatted changes artifact | ||
extra-upload-changes: pyproject.toml | ||
|
||
- name: Install Black only | ||
run: pip install black[jupyter]==${{ env.BLACK_VERSION }} | ||
|
||
|
@@ -108,13 +126,13 @@ jobs: | |
bandit -c pyproject.toml -iii -r . -f sarif -o bandit.sarif --exit-zero | ||
- name: Upload Bandit Scan Results | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | ||
with: | ||
name: bandit.sarif | ||
path: bandit.sarif | ||
|
||
- name: Upload SARIF File into Security Tab | ||
uses: github/codeql-action/upload-sarif@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 | ||
uses: github/codeql-action/upload-sarif@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3.25.12 | ||
with: | ||
sarif_file: bandit.sarif | ||
|
||
|
@@ -126,7 +144,7 @@ jobs: | |
run: | | ||
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV | ||
- uses: rui314/setup-mold@65685f45207903d37d006cd402c397653c57660e # v1 | ||
- uses: rui314/setup-mold@2e332a0b602c2fc65d2d3995941b1b29a5f554a0 # v1 | ||
- name: Build | ||
run: .github/workflows/build_${{ matrix.os }}.sh $HOME/install | ||
Check warning on line 149 in .github/workflows/python-code-quality.yml GitHub Actions / Python Code Quality Checks (ubuntu-22.04)
|
||
|
||
|
@@ -181,7 +199,7 @@ jobs: | |
cp -rp dist.$ARCH/docs/html/libpython sphinx-grass | ||
- name: Make Sphinx documentation available | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4 | ||
with: | ||
name: sphinx-grass | ||
path: sphinx-grass | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.