diff --git a/.github/workflows/_build_and_publish_documentation.yml b/.github/workflows/_build_and_publish_documentation.yml index 54f80e2a..487f638a 100644 --- a/.github/workflows/_build_and_publish_documentation.yml +++ b/.github/workflows/_build_and_publish_documentation.yml @@ -21,10 +21,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' # cache pip dependencies + - name: Install uv + run: | + python -m pip install uv - name: Install dependencies run: | - pip install -r requirements-dev.txt + uv pip install --system -r requirements-dev.txt - name: Print debugging information run: | echo "github.ref:" ${{github.ref}} diff --git a/.github/workflows/_build_package.yml b/.github/workflows/_build_package.yml index 96f0deea..85ba25df 100644 --- a/.github/workflows/_build_package.yml +++ b/.github/workflows/_build_package.yml @@ -14,9 +14,12 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' # cache pip dependencies - - name: Install build and twine - run: pip install build twine + - name: Install uv + run: | + python -m pip install uv + - name: Install build and twine + run: | + uv pip install --system build twine - name: Run build run: python -m build - name: Run twine check diff --git a/.github/workflows/_code_quality.yml b/.github/workflows/_code_quality.yml index 9a509308..a5dd412f 100644 --- a/.github/workflows/_code_quality.yml +++ b/.github/workflows/_code_quality.yml @@ -11,11 +11,15 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' # cache pip dependencies - - name: Install dependencies - run: pip install -r requirements.txt + - name: Install uv + run: | + python -m pip install uv + - name: Install dependencies + run: | + uv pip install --system -r requirements.txt - name: Install ruff - run: pip install ruff==0.5.1 + run: | + uv pip install --system ruff==0.5.1 - name: Run ruff format run: ruff format --diff . @@ -27,11 +31,15 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' # cache pip dependencies - - name: Install dependencies - run: pip install -r requirements.txt + - name: Install uv + run: | + python -m pip install uv + - name: Install dependencies + run: | + uv pip install --system -r requirements.txt - name: Install ruff - run: pip install ruff==0.5.1 + run: | + uv pip install --system ruff==0.5.1 - name: Run ruff check run: ruff check --diff . @@ -43,12 +51,15 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - cache: 'pip' # cache pip dependencies - - name: Install dependencies + - name: Install uv + run: | + python -m pip install uv + - name: Install dependencies run: | - pip install -r requirements.txt - pip install pytest + uv pip install --system -r requirements.txt + uv pip install --system pytest - name: Install pyright - run: pip install pyright==1.1.371 + run: | + uv pip install --system pyright==1.1.371 - name: Run pyright run: pyright . diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index 504c4a77..bbf6accb 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -28,8 +28,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python.version }} - cache: 'pip' # cache pip dependencies - name: Install tox - run: python -m pip install tox + run: python -m pip install tox-uv - name: Run pytest run: tox -e ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}} diff --git a/.github/workflows/_test_future.yml b/.github/workflows/_test_future.yml index aed952a0..28ede257 100644 --- a/.github/workflows/_test_future.yml +++ b/.github/workflows/_test_future.yml @@ -4,7 +4,7 @@ name: Unit Tests (py312) on: workflow_call jobs: - test312: + test313: name: Test on ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}} (experimental) continue-on-error: true runs-on: ${{ matrix.platform.runner }} @@ -16,7 +16,7 @@ jobs: - runner: windows-latest toxenv: windows python: - - version: '3.13.0a2' + - version: '3.13.0-alpha - 3.13.0' toxenv: 'py313' steps: - uses: actions/checkout@v4 @@ -24,8 +24,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python.version }} - cache: 'pip' # cache pip dependencies - name: Install tox - run: python -m pip install tox + run: python -m pip install tox-uv - name: Run pytest run: tox -e ${{matrix.python.toxenv}}-${{matrix.platform.toxenv}} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ab3bc4f..757ad779 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e ## [Unreleased] +### Dependencies +* GitHub workflows: Replaced pip install tox with pip install tox-uv +* GitHub workflows: Removed cache: 'pip' for tox-uv compatibility +* GitHub workflows: Install dependencies: change singleline run statements to multiline run statements +* GitHub workflows: Add step to install 'uv' package +* GitHub workflows: Add step to install 'uv' package +* GitHub workflows: Install dependencies: change from 'pip install' to 'uv pip install' +* GitHub workflow _test_future.yml : updated Python version to 3.13.0-alpha - 3.13.0 +* GitHub workflow _test_future.yml : updated name of test job to 'test313' + ### Dependencies * updated to black[jupyter]==24.4 (from black[jupyter]==23.12) * updated to version: '==24.4' (from version: '==23.12')