Skip to content

Commit

Permalink
ci: add some suggestions from zizmor (#925)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored Feb 5, 2025
1 parent c628755 commit ae83927
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
8 changes: 8 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ on:
- "action.yml"
workflow_dispatch:
# allow manual runs on branches without a PR

env:
FORCE_COLOR: "1"

permissions: {}

jobs:
action-default-tests:
runs-on: ${{ matrix.os }}
Expand All @@ -28,6 +32,8 @@ jobs:
- macos-14
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v5
- uses: ./
- run: nox --non-interactive --error-on-missing-interpreter --session github_actions_default_tests
Expand All @@ -36,6 +42,8 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -32,6 +34,8 @@ jobs:
python-version: "3.12"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up non-default Pythons
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -69,6 +73,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand All @@ -91,6 +97,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand All @@ -103,6 +111,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
Expand All @@ -119,6 +129,8 @@ jobs:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Build sdist and wheel
run: pipx run build
- name: Publish distribution PyPI
Expand Down

0 comments on commit ae83927

Please sign in to comment.