Test PyPI Release #38
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: Install pypdfium2 from package index | |
run: python3 -m pip install -U --pre pypdfium2 --index-url ${{ inputs.index_url }} | |
- name: Get pypdfium2 version | |
id: version | |
run: python3 -c "from pypdfium2.version import *; print(f'version={PYPDFIUM_INFO.tag}')" >> $GITHUB_OUTPUT | |
- name: Check out pypdfium2 ${{ steps.version.outputs.version }} | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.repository }} | |
ref: ${{ steps.version.outputs.version }} | |
- name: Install/update deps | |
run: python3 -m pip install -U -r req/converters.txt -r req/test.txt | |
- name: Run tests | |
run: ./run test |