Publish wheels #24
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: 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 GitHub Actions / build_wheelInvalid workflow file
|
||
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/ |