switch to debug build as we no longer target windows #61
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: wheels | |
on: [ push, pull_request ] | |
jobs: | |
build_wheels: | |
name: Build wheels on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] # windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Patch ogdf::Array on Windows | |
if: runner.os == 'Windows' | |
run: git --git-dir ogdf apply --directory ogdf fix_Array_windows.patch | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.15.0 | |
with: | |
package-dir: ./ | |
output-dir: ./wheelhouse | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: wheels | |
path: ./wheelhouse/*.whl | |
check_contents: | |
name: Build full dist and check contents | |
needs: build_wheels | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Download wheels | |
uses: actions/download-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
- name: Build sdist | |
run: | | |
pip install build click | |
python -m build --sdist | |
- name: Test packages | |
run: | | |
python test_contents.py | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: pkgs | |
path: ./dist | |
test: | |
name: Test on ${{ matrix.os }} | |
needs: build_wheels | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] # windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Download wheels | |
uses: actions/download-artifact@v3 | |
with: | |
name: wheels | |
path: dist | |
- name: Install wheel | |
run: pip install --no-index --find-links ./dist ogdf-wheel | |
- name: Install ogdf-python | |
run: pip install git+https://github.com/N-Coder/ogdf-python.git | |
- name: Get ogdf-python info | |
run: python -m ogdf_python | |
- name: Test ogdf-python layouts | |
run: python test_layouts.py | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: svgs-${{ matrix.os }} | |
path: ./*.svg |