Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
i clearly don't understand reusable custom actions
Browse files Browse the repository at this point in the history
  • Loading branch information
boonhapus committed Jan 6, 2025
1 parent 1ab900a commit 5913818
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 23 deletions.
14 changes: 0 additions & 14 deletions .github/actions/setup/action.yml

This file was deleted.

41 changes: 33 additions & 8 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- 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
Expand All @@ -25,8 +36,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- 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

Expand All @@ -39,16 +61,19 @@ jobs:
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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"
python-version: ${{ matrix.python-version }}

- uses: ./.github/actions/setup

- name: Install development dependencies
shell: bash
run: uv pip install -e ".[dev]"

- name: Run testing
run: uv run hatch run dev:test
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"

- name: Set up Python
run: uv python install

- name: Build our .whl file
run: uvx hatch build
Expand Down

0 comments on commit 5913818

Please sign in to comment.