Skip to content

Bump joerick/cibuildwheel from 2.22.0 to 2.23.2 (#27) #61

Bump joerick/cibuildwheel from 2.22.0 to 2.23.2 (#27)

Bump joerick/cibuildwheel from 2.22.0 to 2.23.2 (#27) #61

Workflow file for this run

name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install build tools
run: sudo apt-get install build-essential cmake
- name: Test C library
run: |
mkdir build && cd build
cmake -DWITH_SANITIZER=ON .. && cmake --build . && ./gfc_test
- name: Test Python bindings
run: |
pip install -e .
pip install pytest
pytest
pypi:
needs: [test]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels
uses: joerick/cibuildwheel@v2.23.2
with:
output-dir: dist
- uses: dioptra-io/publish-python-action@v1
with:
password: ${{ secrets.PYPI_TOKEN }}
upload: ${{ startsWith(github.ref, 'refs/tags/v') }}
wheel: false