Test PyPI Release #43
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: 2024 geisserml <[email protected]> | |
# SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause | |
name: Test PyPI Release | |
on: | |
workflow_dispatch: | |
inputs: | |
index_url: | |
default: 'https://pypi.org/simple' | |
type: string | |
jobs: | |
test-release: | |
strategy: | |
fail-fast: false | |
matrix: | |
# NOTE On GH actions, macOS <=13 is Intel, whereas macOS >=14 will be ARM64 | |
os: ['ubuntu-latest', 'macos-13', 'macos-14', 'windows-latest'] | |
py: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
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 |