pyo3 bindings for uap-python #7
Workflow file for this run
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
name: py checks | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
- "pypy-3.8" | |
- "pypy-3.9" | |
- "pypy-3.10" | |
- "graalpy-24" | |
steps: | |
- name: Checkout working copy | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
allow-prereleases: true | |
- name: Install test dependencies | |
run: | | |
python -mpip install --upgrade pip | |
# cyaml is outright broken on pypy | |
if ! ${{ startsWith(matrix.python-version, 'pypy-') }}; then | |
# if binary wheels are not available for the current | |
# package install libyaml-dev so we can install pyyaml | |
# from source | |
if ! pip download --only-binary pyyaml > /dev/null 2>&1; then | |
sudo apt install libyaml-dev | |
fi | |
fi | |
python -mpip install pytest pyyaml | |
- name: install package | |
run: pip install ua-parser-py | |
- name: run tests | |
run: pytest -v -Werror -ra ua-parser-py |