This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
docs(README): use static badge for license #217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
if: github.repository_owner == 'NTGNguyen' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-dependency-glob: 'uv.lock' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version-file: '.python-version' | |
cache: 'pip' | |
cache-dependency-path: | | |
requirements/requirements.txt | |
- uses: extractions/setup-just@v2 | |
- name: Install deps | |
run: uv sync --frozen --no-dev | |
- name: Generate schemas | |
run: just gen-schemas | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: -a --hook-stage manual |