Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Run bandit
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run bandit -r $(basename $(pwd) | sed -E 's/-/_/')
9 changes: 2 additions & 7 deletions .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: 'Build container'
name: "Build container"
"on":
pull_request:
push:
Expand All @@ -14,16 +14,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- # https://github.com/docker/login-action/#github-container-registry
- # https://github.com/docker/login-action/#github-container-registry
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running mypy
run: |
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run mypy --strict $(basename $(pwd)) tests
11 changes: 7 additions & 4 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: pylint
name: Python Linting

"on":
push:
Expand All @@ -12,8 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Running pylint
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running ruff
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run ruff check $(basename $(pwd)) tests
7 changes: 5 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running pytest
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run python -m pytest -m 'not network'
3 changes: 1 addition & 2 deletions github_linter/fixes/dependabot/dependabot_auto_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ jobs:
github-token: "${{ secrets.GITHUB_TOKEN }}"
alert-lookup: true
compat-lookup: true
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Approve a PR if not already approved

run: |
# sets the upstream metadata for `gh pr status`
gh pr checkout "$PR_URL"
Expand Down
2 changes: 1 addition & 1 deletion github_linter/fixes/github_actions/dependency_review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: "Dependency Review"
uses: actions/dependency-review-action@v3
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Setup sccache
uses: mozilla-actions/[email protected]
- name: Set up QEMU
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ jobs:
bandit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Run bandit
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run bandit -r $(basename $(pwd) | sed -E 's/-/_/g'))
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running mypy
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run mypy --strict $(basename $(pwd) | sed -E 's/-/_/g') tests/
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running tests
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run ruff check $(basename $(pwd) | sed -E 's/-/_/g') tests
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ jobs:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running pytest
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run python -m pytest
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup sccache
uses: mozilla-actions/[email protected]
- uses: actions-rust-lang/setup-rust-toolchain@v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
cargo_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Setup sccache
uses: mozilla-actions/[email protected]
- name: Install Rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
Expand Down
4 changes: 2 additions & 2 deletions github_linter/fixes/homebrew/homebrew_check_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
name: "Homebrew spec update checker"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Run the check script
run: bash homebrew_check_latest_release.sh

Expand All @@ -23,4 +23,4 @@ jobs:
COMMIT_NAME: "Version bump"
COMMIT_EMAIL: "[email protected]"
PR_BRANCH_NAME: "brew-update-${PR_HEAD_REF}"
PR_TITLE: "Update to version"
PR_TITLE: "Update version to latest release ${PR_HEAD_REF}"
9 changes: 6 additions & 3 deletions github_linter/fixes/mkdocs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
activate-environment: "true"
github-token: ${{ github.token }}
- name: Running mkdocs
run: |
python --version
python -m pip install --quiet --no-cache-dir --upgrade uv
uv run mkdocs gh-deploy -m 'Commit {sha} MkDocs {version}'