summaryrefslogtreecommitdiff
path: root/.github/workflows/pip-build-linux.yml
blob: a2b4f085d388a0f281b2cc84ce06bc557e45eab2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: pip build linux

on: [push, pull_request]

jobs:
  build:
    name: build pip wheel
    runs-on: ubuntu-latest
    # cf. https://github.com/GUDHI/gudhi-deploy/blob/main/Dockerfile_for_pip
    container: gudhi/pip_for_gudhi
    steps:
      - uses: actions/checkout@v1
        with:
          submodules: true
      - name: Build wheel for Python 3.10
        run: |
          mkdir build_310
          cd build_310
          cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$PYTHON310/bin/python ..
          cd src/python
          $PYTHON310/bin/python setup.py bdist_wheel
          auditwheel repair dist/*.whl
      - name: Install and test wheel for Python 3.10
        run: |
          $PYTHON310/bin/python -m pip install --user pytest build_310/src/python/dist/*.whl
          $PYTHON310/bin/python -c "import gudhi; print(gudhi.__version__)"
          $PYTHON310/bin/python -m pytest src/python/test/test_alpha_complex.py