diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index 9f6bc32..19d752f 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -8,10 +8,6 @@ on: - v2_main -env: - UV_SYSTEM_PYTHON: 1 - - jobs: lint: @@ -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. @@ -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. @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 314302e..90e8150 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,10 +5,6 @@ on: types: [published] -env: - UV_SYSTEM_PYTHON: 1 - - jobs: publish: @@ -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