Skip to content

Commit

Permalink
gh workflow: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
reyammer committed Jan 23, 2025
1 parent 9e16915 commit 2280dce
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/python-build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
python-version: '3.12'
- 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.platform.runner == 'ubuntu-latest'
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
Expand Down Expand Up @@ -95,19 +95,8 @@ jobs:
- name: Build pure python wheel
run: uv build --wheel --out-dir ../dist
working-directory: python
- if: matrix.platform.runner != 'windows-latest'
name: Check that `uv add magika.whl` works
run: mkdir /tmp/test-uv && cp -vR dist/*.whl /tmp/test-uv && cd /tmp/test-uv && uv init && uv add ./$(\ls -1 *.whl | head -n 1)
- if: matrix.platform.runner == 'windows-latest'
name: Check that magika install with uv works on Windows
shell: pwsh
run: |
mkdir C:\test-uv
Copy-Item -Path dist\*.whl -Destination C:\test-uv
cd C:\test-uv
uv init
$wheel = Get-ChildItem -Filter *.whl | Select-Object -ExpandProperty Name
uv add ".\$wheel"
- name: Install wheels
run: python3 -m pip install $(python -c "import glob; print(glob.glob('dist/*.whl')[0])")
- run: magika --version
Expand Down

0 comments on commit 2280dce

Please sign in to comment.