Skip to content

Commit

Permalink
Add job to test creating wheels for packages (#222)
Browse files Browse the repository at this point in the history
* Add job to test creating wheels for packages

* move to ci
  • Loading branch information
ludeeus authored May 12, 2021
1 parent a3b04ae commit f03c02e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,37 @@ jobs:
docker run --rm -i \
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < Dockerfile
test:
name: Test wheels ${{ matrix.arch }}-python${{ matrix.python }}-alpine${{ matrix.alpine }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.8", "3.9"]
alpine: ["3.11", "3.12", "3.13"]
arch: ["aarch64", "armhf", "armv7", "amd64", "i386"]

steps:
- name: Check out code from GitHub
uses: actions/[email protected]

- name: Write env-file
shell: bash
run: |
(
echo "GRPC_BUILD_WITH_BORING_SSL_ASM=false"
echo "GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true"
echo "GRPC_PYTHON_BUILD_WITH_CYTHON=true"
) > .env_file
- name: Build wheels
uses: home-assistant/wheels@master
with:
tag: ${{ matrix.python }}-alpine${{ matrix.alpine }}
arch: ${{ matrix.arch }}
wheels-host: wheels.hass.io
apk: "build-base;libffi-dev;openssl-dev"
skip-binary: aiohttp
env-file: True
test: True
requirements: "requirements_wheels_test.txt"
1 change: 1 addition & 0 deletions requirements_wheels_test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
freesms==0.1.2

0 comments on commit f03c02e

Please sign in to comment.