i clearly don't understand reusable custom actions #3
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: Enforce Code Quality | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- v2_main | |
jobs: | |
lint: | |
name: Ensuring Types are correct. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.14" | |
- name: Set up Python | |
run: uv python install | |
- name: Install development dependencies | |
shell: bash | |
run: uv pip install -e ".[dev]" | |
- name: Run the Linter and Formatter. | |
run: uv run hatch run dev:lint | |
typecheck: | |
name: Ensuring Python type-hints are correct. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.14" | |
- name: Set up Python | |
run: uv python install | |
- name: Install development dependencies | |
shell: bash | |
run: uv pip install -e ".[dev]" | |
- name: Run the type checker. | |
run: uv run hatch run dev:typecheck | |
test: | |
name: Testing on Python ${{ matrix.python-version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
version: "0.5.14" | |
python-version: ${{ matrix.python-version }} | |
- name: Install development dependencies | |
shell: bash | |
run: uv pip install -e ".[dev]" | |
- name: Run testing | |
run: uv run hatch run dev:test |