Test PyPI Release #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 geisserml <[email protected]> | |
# SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause | |
name: Test Release | |
on: | |
workflow_dispatch: | |
inputs: | |
index_url: | |
default: 'https://pypi.org/simple' | |
type: string | |
jobs: | |
test-release: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
py: ['3.7', '3.8', '3.9', '3.10', '3.11'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.py }} | |
- name: Check out pypdfium2 repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }} | |
- name: Install/update deps | |
run: | | |
python3 -m pip install -U pip setuptools | |
python3 -m pip install -U -r req/converters.txt -r req/test.txt | |
- name: Install pypdfium2 | |
run: python3 -m pip install -U --pre pypdfium2 --index-url ${{ inputs.index_url }} | |
- name: Get pypdfium2 version | |
id: version | |
run: python3 -c "import pypdfium2; print('version=%s' % pypdfium2.V_PYPDFIUM2)" >> $GITHUB_OUTPUT | |
- name: Check out pypdfium2 repository | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }} | |
ref: ${{ steps.version.outputs.version }} | |
- name: Run tests | |
run: ./run test |