Skip to content

Commit

Permalink
python: attempt to uv add magika when building packages
Browse files Browse the repository at this point in the history
  • Loading branch information
reyammer committed Nov 20, 2024
1 parent 025923e commit 6d62f7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/maturin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
target: aarch64
steps:
- uses: actions/checkout@v4
- name: Install uv
run: curl -LsSf https://astral.sh/uv/0.4.7/install.sh | sh
- if: matrix.platform.runner == 'ubuntu-latest'
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
with:
Expand All @@ -51,6 +53,8 @@ jobs:
target: ${{ matrix.platform.target }}
args: --release --out=../dist
working-directory: python
- 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)
- 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 6d62f7c

Please sign in to comment.