diff --git a/.github/workflows/python-test-published-rc-package.yml b/.github/workflows/python-test-published-rc-package.yml index 1d7163bc..b5777cb6 100644 --- a/.github/workflows/python-test-published-rc-package.yml +++ b/.github/workflows/python-test-published-rc-package.yml @@ -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 @@ -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