-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI for Python 3.10, manylinux2, musllinux1 and OpenSUSE Tumbleweed (
#225) * add CI for python 3.10 Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * skip 3.6 and 3.7 builds for tumbleweed since python versions not available in repo Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * build for manylinux2_24 soabi Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * try building for musllinux1_1 soabi Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * fix wheel selection for auditwheel repair Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * use plain parametrization in constants tests instead of hypothesis Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * battle zypper Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * battle zypper Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * battle zypper Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> * battle zypper Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
- Loading branch information
Showing
7 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: opensuse-tumbleweed | ||
on: [push, pull_request] | ||
jobs: | ||
tumbleweed: | ||
runs-on: ubuntu-latest | ||
container: opensuse/tumbleweed | ||
strategy: | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install build dependencies | ||
run: | | ||
zypper -n install -t pattern devel_basis | ||
PKGVER_NO_DOT=$(tr -d '.' <<< ${{ matrix.python-version }}) | ||
zypper -n install git libxmlsec1-openssl1 xmlsec1-openssl-devel python${PKGVER_NO_DOT}-devel python${PKGVER_NO_DOT}-pip | ||
python${{ matrix.python-version }} -m venv .venv | ||
.venv/bin/python -m pip install --upgrade pip setuptools wheel | ||
- name: Build linux_x86_64 wheel | ||
run: | | ||
.venv/bin/python setup.py bdist_wheel | ||
rm -rf build/ | ||
- name: Install test dependencies | ||
run: | | ||
.venv/bin/python -m pip install --upgrade -r requirements-test.txt | ||
.venv/bin/python -m pip install xmlsec --only-binary=xmlsec --no-index --find-links=dist/ | ||
- name: Run tests | ||
run: | | ||
.venv/bin/python -m pytest -v --color=yes |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
-r requirements.txt | ||
pytest>=4.6.9 | ||
hypothesis | ||
lxml-stubs |
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