Skip to content

Commit

Permalink
Add a pre-release build test in actions.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Hooks <mhooks@rippling.com>
  • Loading branch information
Hooksie committed Jul 19, 2023
1 parent a6a453c commit 8ba77d5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,27 @@ jobs:
with:
command: clippy
args: -- -D warnings

test_manylinux_release:
name: Test manylinux release build
runs-on: ubuntu-latest
strategy:
matrix:
python-path: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
container: quay.io/pypa/manylinux_2_28_x86_64:latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-gnu
- run: yum makecache && yum -y install libffi-devel openssl-devel
- run: /opt/python/${{ matrix.python-path }}/bin/python -m venv .venv
- run: .venv/bin/pip install -U pip wheel
- run: .venv/bin/pip install -U twine maturin
- run: .venv/bin/pip install -r requirements.txt
- run: OPENSSL_STATIC=1 .venv/bin/maturin build --release --strip --manylinux 2_28 -i /opt/python/${{ matrix.python-path }}/bin/python --target x86_64-unknown-linux-gnu
- run: .venv/bin/pip install rfernet --no-index -f target/wheels
- run: .venv/bin/pytest

0 comments on commit 8ba77d5

Please sign in to comment.