diff --git a/.github/workflows/bandit.yml b/.github/workflows/bandit.yml index 485c0fd..4f68094 100644 --- a/.github/workflows/bandit.yml +++ b/.github/workflows/bandit.yml @@ -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/-/_/') diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml index b33dc2d..89aa313 100644 --- a/.github/workflows/build_container.yml +++ b/.github/workflows/build_container.yml @@ -1,5 +1,5 @@ --- -name: 'Build container' +name: "Build container" "on": pull_request: push: @@ -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: diff --git a/.github/workflows/codeql-analysis.yml.disabled b/.github/workflows/codeql-analysis.yml.disabled index 7f76022..d6616f9 100644 --- a/.github/workflows/codeql-analysis.yml.disabled +++ b/.github/workflows/codeql-analysis.yml.disabled @@ -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 diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index bbdf72f..0cecfe0 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -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 diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 0a348fa..7e1cc3a 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,5 +1,5 @@ --- -name: pylint +name: Python Linting "on": push: @@ -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 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 82cccb5..2eebadf 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -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' diff --git a/github_linter/fixes/dependabot/dependabot_auto_merge.yml b/github_linter/fixes/dependabot/dependabot_auto_merge.yml index 3cb2eb0..89fdd63 100644 --- a/github_linter/fixes/dependabot/dependabot_auto_merge.yml +++ b/github_linter/fixes/dependabot/dependabot_auto_merge.yml @@ -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" diff --git a/github_linter/fixes/github_actions/dependency_review.yml b/github_linter/fixes/github_actions/dependency_review.yml index b3948e9..fe75f30 100644 --- a/github_linter/fixes/github_actions/dependency_review.yml +++ b/github_linter/fixes/github_actions/dependency_review.yml @@ -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 diff --git a/github_linter/fixes/github_actions/templates/Dockerfile/build_container.yml b/github_linter/fixes/github_actions/templates/Dockerfile/build_container.yml index 6bcfde5..78e1f89 100644 --- a/github_linter/fixes/github_actions/templates/Dockerfile/build_container.yml +++ b/github_linter/fixes/github_actions/templates/Dockerfile/build_container.yml @@ -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/sccache-action@v0.0.9 - name: Set up QEMU diff --git a/github_linter/fixes/github_actions/templates/Python/bandit.yml b/github_linter/fixes/github_actions/templates/Python/bandit.yml index 911220f..6c03a65 100644 --- a/github_linter/fixes/github_actions/templates/Python/bandit.yml +++ b/github_linter/fixes/github_actions/templates/Python/bandit.yml @@ -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')) diff --git a/github_linter/fixes/github_actions/templates/Python/mypy.yml b/github_linter/fixes/github_actions/templates/Python/mypy.yml index 7bf37cf..8a088f1 100644 --- a/github_linter/fixes/github_actions/templates/Python/mypy.yml +++ b/github_linter/fixes/github_actions/templates/Python/mypy.yml @@ -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/ diff --git a/github_linter/fixes/github_actions/templates/Python/pylint.yml b/github_linter/fixes/github_actions/templates/Python/pylint.yml index ed52949..a7122b5 100644 --- a/github_linter/fixes/github_actions/templates/Python/pylint.yml +++ b/github_linter/fixes/github_actions/templates/Python/pylint.yml @@ -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 diff --git a/github_linter/fixes/github_actions/templates/Python/pytest.yml b/github_linter/fixes/github_actions/templates/Python/pytest.yml index a56f4b4..7b38445 100644 --- a/github_linter/fixes/github_actions/templates/Python/pytest.yml +++ b/github_linter/fixes/github_actions/templates/Python/pytest.yml @@ -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 diff --git a/github_linter/fixes/github_actions/templates/Rust/clippy.yml b/github_linter/fixes/github_actions/templates/Rust/clippy.yml index bee3a1e..5ace991 100644 --- a/github_linter/fixes/github_actions/templates/Rust/clippy.yml +++ b/github_linter/fixes/github_actions/templates/Rust/clippy.yml @@ -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/sccache-action@v0.0.9 - uses: actions-rust-lang/setup-rust-toolchain@v1 diff --git a/github_linter/fixes/github_actions/templates/Rust/rust_test.yml b/github_linter/fixes/github_actions/templates/Rust/rust_test.yml index c55f175..0065aa0 100644 --- a/github_linter/fixes/github_actions/templates/Rust/rust_test.yml +++ b/github_linter/fixes/github_actions/templates/Rust/rust_test.yml @@ -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/sccache-action@v0.0.9 - name: Install Rust diff --git a/github_linter/fixes/github_actions/templates/Shell/shellcheck.yml b/github_linter/fixes/github_actions/templates/Shell/shellcheck.yml index 0e24744..32509ad 100644 --- a/github_linter/fixes/github_actions/templates/Shell/shellcheck.yml +++ b/github_linter/fixes/github_actions/templates/Shell/shellcheck.yml @@ -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: diff --git a/github_linter/fixes/homebrew/homebrew_check_updates.yml b/github_linter/fixes/homebrew/homebrew_check_updates.yml index 74c8393..06e604d 100644 --- a/github_linter/fixes/homebrew/homebrew_check_updates.yml +++ b/github_linter/fixes/homebrew/homebrew_check_updates.yml @@ -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 @@ -23,4 +23,4 @@ jobs: COMMIT_NAME: "Version bump" COMMIT_EMAIL: "james@terminaloutcomes.com" PR_BRANCH_NAME: "brew-update-${PR_HEAD_REF}" - PR_TITLE: "Update to version" + PR_TITLE: "Update version to latest release ${PR_HEAD_REF}" diff --git a/github_linter/fixes/mkdocs/mkdocs.yml b/github_linter/fixes/mkdocs/mkdocs.yml index 7ebe6a2..ffef7bf 100644 --- a/github_linter/fixes/mkdocs/mkdocs.yml +++ b/github_linter/fixes/mkdocs/mkdocs.yml @@ -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}'