Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: test published -rc packages with uv add #815

Merged
merged 4 commits into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/python-test-published-rc-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '42 3 * * *' # Run daily
workflow_dispatch:
pull_request:
paths:
- '.github/workflows/python-test-published-rc-package.yml'

permissions:
contents: read
Expand All @@ -22,13 +25,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4

- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # pin@v5
with:
python-version: '${{ matrix.python-version }}'

- name: Install magika
- if: matrix.os != 'windows-latest'
name: Install uv
run: curl -LsSf https://astral.sh/uv/0.5.4/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
- name: Install magika with pip
run: python3 -m pip install --pre magika
- run: python3 -c 'import magika; m = magika.Magika(); print(m); print(magika.__version__)'
- run: magika --version
Expand Down
Loading