Skip to content

stubs: Add missing item APIs #40

stubs: Add missing item APIs

stubs: Add missing item APIs #40

Workflow file for this run

name: build_wheel
on: [push]
permissions: read-all
jobs:
build_wheel:
runs-on: [self-hosted, libpff]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- name: Download test data
run: |
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
- name: Prepare build
run: |
./synclibs.sh --use-head && ./autogen.sh && ./configure && make sources >/dev/null
- name: Create virtual environment
run: |
rm -rf venv
python3 -m venv venv
echo "$(pwd)/venv/bin" >> $GITHUB_PATH
- name: Install Python dependencies
run: |
python3 -m pip install \
'build' \
'mypy' \
'setuptools>=65' \
'wheel'
- name: Build libpff-python wheel
run: |
python3 -m build --no-isolation --outdir=dist --wheel
python3 -m pip install --no-index --find-links=dist libpff-python
python3 tests/runtests.py
- name: Build pypff-stubs wheel
working-directory: stubs
run: |
python3 -m build --outdir=dist --wheel
python3 -m pip install --no-index --find-links=dist pypff-stubs
mypy --strict -c 'import pypff; reveal_type(pypff.file)'
- name: Upload wheels
run: |
./upload-wheel.sh dist/libpff_python*.whl
./upload-wheel.sh stubs/dist/pypff_stubs*.whl