Skip to content

Commit

Permalink
Use pre-commit-uv and fix zizmor
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 26, 2024
1 parent 77650ad commit e3cb027
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Lint

on: [push, pull_request, workflow_dispatch]

env:
FORCE_COLOR: 1

permissions:
contents: read

Expand All @@ -10,8 +13,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/action@v3.0.0
- uses: tox-dev/action-pre-commit-uv@v1
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
name: Create release

on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '[0-9]+\.[0-9]+'

name: Create release
env:
FORCE_COLOR: 1

jobs:
build:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

uses: actions/checkout@v4
with:
persist-credentials: false
- name: Get the version
id: get_version
if: startsWith(github.ref, 'refs/tags/')
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
name: Release ${{ steps.get_version.outputs.VERSION }}

0 comments on commit e3cb027

Please sign in to comment.