Skip to content

use bash shell

use bash shell #23

Workflow file for this run

name: Tests
on:
push:
branches:
- v1.**
- use-limited-api
pull_request:
branches:
- main
- v1.**
concurrency:
# avoid duplicate runs on both pushes and PRs
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# Coloured output for GitHub Actions
FORCE_COLOR: 3
# Some common environment variables for both GNU/Linux and macOS jobs
MPLBACKEND: Agg
CYTHON_TRACE: 1
CYTHONSPEC: cython
NUMPY_MIN: numpy==1.26.4
CYTHON_MIN: cython==3.1.3
jobs:
build_stable_abi_wheel:
name: build-abi3-${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.2
- uses: actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234 # v5.5.0
with:
python-version: "3.12"
- name: Build package
run: |
pip install build
python -m build --wheel -Csetup-args="--vsenv" -Csetup-args="-Dpython.allow_limited_api=true"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
path: ./dist/*.whl
name: ${{ matrix.platform }}-abi3-wheel
test_stable_abi_wheel:
needs: build_stable_abi_wheel
name: test-abi3-${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/setup-python@2e3e4b15a884dc73a63f962bff250a855150a234 # v5.5.0
with:
python-version: "3.14"
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: ${{ matrix.platform }}-abi3-wheel
- name: Check downloaded artifact
run: |
ls
- name: Install downloaded wheel
shell: bash
run: |
pip install pywavelets-*-abi3-*.whl
- name: Install test dependencies
run: |
pip install pytest numpy matplotlib
- name: Run tests
run: |
pytest --pyargs pywt