Skip to content

Commit

Permalink
Fix the "Release to PyPI" workflow and add check-jsonschema as a pre-…
Browse files Browse the repository at this point in the history
…commit hook to prevent future errors (#167)
  • Loading branch information
edgarrmondragon authored Jan 10, 2024
1 parent e1ccea9 commit e347a52
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: check
on:
workflow_dispatch:
push:
branches: "main"
branches: ["main"]
tags-ignore: ["**"]
pull_request:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
steps:
- name: Setup python to build package
uses: actions/setup-python@v5
cache: "pip"
with:
cache: "pip"
python-version: "3.12"
- name: Install build
run: python -m pip install build
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ repos:
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
hooks:
- id: check-github-workflows
args: ["--verbose"]

0 comments on commit e347a52

Please sign in to comment.