-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from pycompression/release_0.9.0
Release 0.9.0
- Loading branch information
Showing
7 changed files
with
70 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,10 +57,12 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: | ||
- 3.6 | ||
- 3.7 | ||
- 3.8 | ||
- 3.9 | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
- "pypy-3.6" | ||
- "pypy-3.7" | ||
os: ["ubuntu-latest"] | ||
include: | ||
- os: "macos-latest" | ||
|
@@ -92,10 +94,34 @@ jobs: | |
uses: ilammy/[email protected] | ||
if: runner.os == 'Windows' | ||
- name: Run tests | ||
run: tox -e py3 | ||
run: tox | ||
- name: Upload coverage report | ||
uses: codecov/codecov-action@v1 | ||
|
||
test-arch: | ||
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' | ||
runs-on: "ubuntu-latest" | ||
needs: lint | ||
strategy: | ||
matrix: | ||
distro: [ "ubuntu20.04" ] | ||
arch: ["aarch64"] | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
submodules: recursive | ||
- uses: uraimo/[email protected] | ||
name: Build & run test | ||
with: | ||
arch: ${{ matrix.arch }} | ||
distro: ${{ matrix.distro }} | ||
install: | | ||
apt-get update -q -y | ||
apt-get install -q -y python3 python3-pip gcc binutils automake autoconf libtool | ||
run: | | ||
python3 -m pip install -U setuptools pip wheel tox | ||
tox | ||
# Test if the python-isal conda package can be build. Which is linked | ||
# dynamically to the conda isa-l package. | ||
test-dynamic: | ||
|
@@ -109,6 +135,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | ||
python_version: ["python"] | ||
include: | ||
- os: "ubuntu-latest" | ||
python_version: "pypy" | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -118,19 +148,19 @@ jobs: | |
with: | ||
channels: conda-forge,defaults | ||
- name: Install requirements (universal) | ||
run: conda install isa-l python tox | ||
run: conda install isa-l ${{ matrix.python_version}} tox | ||
- name: Set MSVC developer prompt | ||
uses: ilammy/[email protected] | ||
if: runner.os == 'Windows' | ||
- name: Run tests (dynamic link) | ||
run: tox -e py3 | ||
run: tox | ||
env: | ||
PYTHON_ISAL_LINK_DYNAMIC: True | ||
|
||
deploy: | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | ||
runs-on: ${{ matrix.os }} | ||
needs: [lint, package-checks, test-static, test-dynamic] | ||
needs: [lint, package-checks, test-static, test-dynamic, test-arch] | ||
strategy: | ||
matrix: | ||
os: ["macos-latest", "ubuntu-latest", "windows-latest"] | ||
|
@@ -151,16 +181,23 @@ jobs: | |
- name: Install nasm (Windows) | ||
uses: ilammy/[email protected] | ||
if: runner.os == 'Windows' | ||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/[email protected] | ||
with: | ||
platforms: arm64 | ||
- name: Build wheels | ||
run: cibuildwheel --output-dir dist | ||
env: | ||
CIBW_BUILD: "cp3{6,7,8,9}-*" | ||
CIBW_SKIP: "*-win32 *-manylinux_i686" # Skip 32 bit. | ||
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014" | ||
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014" | ||
CIBW_ARCHS_LINUX: "x86_64 aarch64" | ||
# Fully test the build wheels again. | ||
CIBW_TEST_REQUIRES: "pytest" | ||
# Simple test that requires the project to be build correctly | ||
CIBW_TEST_COMMAND: "pytest {project}/tests/test_igzip.py" | ||
CIBW_TEST_COMMAND: >- | ||
pytest {project}/tests/test_igzip.py {project}/tests/test_isal.py | ||
- name: Build sdist | ||
if: "runner.os == 'Linux'" | ||
run: python setup.py sdist | ||
|
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 |
---|---|---|
|
@@ -39,4 +39,4 @@ | |
"__version__" | ||
] | ||
|
||
__version__ = "0.8.1" | ||
__version__ = "0.9.0" |
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