Skip to content

Commit

Permalink
Merge pull request #815 from google/py-test-rc-with-uv
Browse files Browse the repository at this point in the history
python: test published -rc packages with uv add
  • Loading branch information
reyammer authored Nov 21, 2024
2 parents be7cb27 + efea67a commit ffb3299
Showing 1 changed file with 10 additions and 3 deletions.
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

0 comments on commit ffb3299

Please sign in to comment.