Skip to content

Commit e3cb027

Browse files
committed
Use pre-commit-uv and fix zizmor
1 parent 77650ad commit e3cb027

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/lint.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
env:
6+
FORCE_COLOR: 1
7+
58
permissions:
69
contents: read
710

@@ -10,8 +13,10 @@ jobs:
1013
runs-on: ubuntu-latest
1114

1215
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-python@v4
16+
- uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- uses: actions/setup-python@v5
1520
with:
1621
python-version: "3.x"
17-
- uses: pre-commit/action@v3.0.0
22+
- uses: tox-dev/action-pre-commit-uv@v1

.github/workflows/release.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1+
name: Create release
2+
13
on:
24
push:
35
# Sequence of patterns matched against refs/tags
46
tags:
57
- '[0-9]+\.[0-9]+'
68

7-
name: Create release
9+
env:
10+
FORCE_COLOR: 1
811

912
jobs:
1013
build:
1114
name: Create release
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout code
15-
uses: actions/checkout@v3
16-
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
1721
- name: Get the version
1822
id: get_version
1923
if: startsWith(github.ref, 'refs/tags/')
2024
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
2125

2226
- name: Create release
23-
uses: softprops/action-gh-release@v1
27+
uses: softprops/action-gh-release@v2
2428
with:
2529
name: Release ${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)