tests/digital: coverage of features introduced in fw0.33 #622
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 | |
on: [push, pull_request] | |
# TODO: add a simple test that tries to import the libm2k package after creating wheel; | |
# NOTE: do i have a acces to a pip install during the cybuildwheel process? | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-22.04] | |
# os: [CentOS_7] # manylinux2014: (CentOS 7 based) | |
python_version: ['3.11'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
name: Install Python ${{ matrix.python_version }} | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Create empty setup.py file | |
shell: bash | |
run: | | |
mkdir ${{ github.workspace }}/build | |
touch ${{ github.workspace }}/build/setup.py | |
# TODO: Test using more recent Docker image | |
- name: Get some sample wheels | |
run: | | |
python -m pip install cibuildwheel twine | |
cibuildwheel --output-dir ${{ github.workspace }}/wheelhouse ${{ github.workspace }}/build | |
env: | |
CIBW_DEBUG_KEEP_CONTAINER=: TRUE | |
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28 | |
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 | |
# Skip building PyPy wheels on all platforms | |
# Skip musllinux builds | |
# Skip i686 builds: 32bit arch not supported in manylinux_2_28 | |
CIBW_SKIP: "pp* *-musllinux* *i686" | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_BEFORE_ALL: > | |
cd {project} && ./.github/scripts/install_deps.sh {package} | |
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*" | |
CIBW_ENVIRONMENT: COMPILE_BINDINGS="True" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: manylinux_wheels | |
path: ${{ github.workspace }}/wheelhouse | |
deploy_wheels: | |
name: Deploy wheels on test PyPI | |
runs-on: ubuntu-latest | |
needs: [build_wheels] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: Install Python 3.11 | |
with: | |
python-version: '3.11' | |
- uses: actions/download-artifact@v2 | |
with: | |
name: manylinux_wheels | |
- name: Upload to PyPI | |
shell: bash | |
run: | | |
python -m pip install twine | |
python -m twine upload --repository "testpypi" ${{ github.workspace }}/wheelhouse/*.whl | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} |