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

Commit

Permalink
try with uv venv
Browse files Browse the repository at this point in the history
  • Loading branch information
boonhapus committed Jan 6, 2025
1 parent 728897a commit f67103e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
- v2_main


env:
UV_SYSTEM_PYTHON: 1


jobs:

lint:
Expand All @@ -24,12 +20,11 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"
- name: Set up Python
run: uv python install

- name: Create a virtual environment
run: uv venv

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

- name: Run the Linter and Formatter.
Expand All @@ -46,12 +41,11 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"

- name: Set up Python
run: uv python install

- name: Create a virtual environment
run: uv venv

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

- name: Run the type checker.
Expand All @@ -76,8 +70,10 @@ jobs:
version: "0.5.14"
python-version: ${{ matrix.python-version }}

- name: Create a virtual environment
run: uv venv

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

- name: Run testing
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
types: [published]


env:
UV_SYSTEM_PYTHON: 1


jobs:

publish:
Expand All @@ -21,10 +17,10 @@ jobs:
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"

- name: Set up Python
run: uv python install

- name: Create a virtual environment
run: uv venv

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

Expand Down

0 comments on commit f67103e

Please sign in to comment.