Skip to content

Publish wheels

Publish wheels #24

Workflow file for this run

name: build_wheel
on: [push, pull_request]
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: Publish wheels
if: TODO

Check failure on line 39 in .github/workflows/build_wheel.yml

View workflow run for this annotation

GitHub Actions / build_wheel

Invalid workflow file

The workflow is not valid. .github/workflows/build_wheel.yml (Line: 39, Col: 11): Unrecognized named-value: 'TODO'. Located at position 1 within expression: TODO
run: |
aws \
s3 \
cp \
--region us-east-1 \
dist/libpff-python*.whl \
s3://everlaw-build-artifacts/libpff/
aws \
s3 \
cp \
--region us-east-1 \
stubs/dist/pypff-stubs*.whl \
s3://everlaw-build-artifacts/libpff/