Skip to content

Commit

Permalink
Merge pull request #921 from google/fix-live-pip-package-tester
Browse files Browse the repository at this point in the history
gh workflow: bump uv version in public pip package testers
  • Loading branch information
reyammer authored Jan 24, 2025
2 parents c928cfd + 9bff358 commit 924acc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/python-test-published-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
# uv's oneline below does not work on windows; uv add magika==0.5.1 is known to not work with python 3.8 and 3.9
- if: matrix.os != 'windows-latest' && matrix.python-version != '3.8' && matrix.python-version != '3.9'
name: Install uv
run: curl -LsSf https://astral.sh/uv/0.4.7/install.sh | sh
run: curl -LsSf https://astral.sh/uv/0.5.22/install.sh | sh
- if: matrix.os != 'windows-latest' && matrix.python-version != '3.8' && matrix.python-version != '3.9'
name: Check that magika can be installed with uv
run: mkdir /tmp/test-uv && cd /tmp/test-uv && uv init && uv add magika && cd - && rm -rf /tmp/test-uv
Expand All @@ -43,6 +43,7 @@ jobs:
mkdir C:\test-uv
Copy-Item -Path dist\*.whl -Destination C:\test-uv
cd C:\test-uv
$env:PATH += ";$HOME/.local/bin"
uv init
$wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name
uv add ".\$wheel"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/python-test-published-rc-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: '${{ matrix.python-version }}'
- if: matrix.os != 'windows-latest'
name: Install uv
run: curl -LsSf https://astral.sh/uv/0.5.4/install.sh | sh
run: curl -LsSf https://astral.sh/uv/0.5.22/install.sh | sh
- if: matrix.os != 'windows-latest'
name: Check that magika -rc can be installed with uv
run: mkdir /tmp/test-uv && cd /tmp/test-uv && uv init && uv add --prerelease allow magika && cd - && rm -rf /tmp/test-uv
Expand All @@ -42,6 +42,7 @@ jobs:
mkdir C:\test-uv
Copy-Item -Path dist\*.whl -Destination C:\test-uv
cd C:\test-uv
$env:PATH += ";$HOME/.local/bin"
uv init
$wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name
uv add --prerelease ".\$wheel"
Expand Down

0 comments on commit 924acc2

Please sign in to comment.