Skip to content

update action versions #65

update action versions

update action versions #65

Workflow file for this run

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, macos-13, windows-latest ]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
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
with:
package-dir: ./
output-dir: ./wheelhouse
- uses: actions/upload-artifact@v4
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@v4
with:
submodules: 'recursive'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Download wheels
uses: actions/download-artifact@v4
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@v4
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, macos-13, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Download wheels
uses: actions/download-artifact@v4
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