-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Update DevOps tooling from central repository
- Loading branch information
1 parent
6d26d34
commit 51f95c1
Showing
10 changed files
with
199 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
name: "⛔️ Standalone linting checks" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
branches: | ||
- "*" | ||
- "!update-devops-tooling" | ||
|
||
jobs: | ||
linting: | ||
|
||
name: "Unsupported by pre-commit.ci" | ||
runs-on: "ubuntu-latest" | ||
# Don't run when pull request is merged | ||
if: github.event.pull_request.merged == false | ||
|
||
steps: | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Install linting tools" | ||
run: | | ||
pip install --upgrade pip | ||
pip install pre-commit mypy | ||
- name: "Run mypy using pre-commit" | ||
run: pre-commit run mypy -a | ||
|
||
# yamllint disable rule:line-length | ||
# yamllint disable rule:comments-indentation | ||
# yamllint disable rule:comments | ||
|
||
# Provided below as an example, in case needed in future | ||
# - name: "Install dependencies" | ||
# run: | | ||
# SOURCE=".pre-commit-config.yaml" | ||
# echo "Install Python dependencies from: $SOURCE" | ||
# echo "With: pip install $PKGS" | ||
# PKGS=$(yq '.repos[] | select (.repo == "https://github.com/pre-commit/mirrors-mypy")' .pre-commit-config.yaml | \ | ||
# grep additional_dependencies | \ | ||
# awk -F: '{print $2}' | \ | ||
# sed "s/\[//g" | \ | ||
# sed "s/\]//g" | \ | ||
# sed "s/,//g" | \ | ||
# sed 's/"//g') | ||
# pip install $PKGS |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# For more information see: | ||
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: "⛔️ Security auditing" | ||
name: "⛔️ Security auditing (Matrix)" | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
|
@@ -19,10 +19,13 @@ jobs: | |
build: | ||
name: "Audit Python dependencies" | ||
runs-on: ubuntu-latest | ||
# Don't run when pull request is merged | ||
if: github.event.pull_request.merged == false | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11"] | ||
|
||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
@@ -48,10 +51,3 @@ jobs: | |
- name: "Run: pip-audit" | ||
uses: pypa/[email protected] | ||
with: | ||
ignore-vulns: | | ||
PYSEC-2023-163 | ||
# Name | Version | ID | | ||
# --- | --- | --- | --- | --- | ||
# numexpr | 2.8.7 | PYSEC-2023-163 | |
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.