Skip to content

Bump pypa/cibuildwheel from 2.14.0 to 2.16.0 #157

Bump pypa/cibuildwheel from 2.14.0 to 2.16.0

Bump pypa/cibuildwheel from 2.14.0 to 2.16.0 #157

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
PYTHON_VERSION: '3.10'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Display version
run: |
python --version
pip --version
- name: Install pypa/build
run: |
pip install build
- name: Build a binary wheel and a source tarball
run: |
python -m build
- name: Display content dist folder
run: |
ls -l dist/
- uses: actions/upload-artifact@v3
with:
path: ./dist/*
name: dist
test:
name: Test Packaging
needs: build
runs-on: ubuntu-latest
env:
PYTHON_VERSION: '3.10'
steps:
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/download-artifact@v3
- name: Display content working folder
run: |
ls -R
- name: Install HyperSpy (dev)
run: |
pip install https://github.com/hyperspy/hyperspy/archive/refs/heads/RELEASE_next_major.zip
- name: Install distribution
run: |
# uninstall version from installed by hyperspy first
# release otherwise hyperspy install a version and this dist is ignored
pip uninstall --yes rosettasciio
pip install --pre --find-links dist rosettasciio[all,tests]
- name: Test distribution
run: |
# can't use `-n 2` because xdist ignore the `conftest.py`
pytest --pyargs rsciio --reruns 3