File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -123,24 +123,46 @@ jobs:
123123 - uses : actions/checkout@v4
124124
125125 - name : Set up Python
126+ id : setup-python
126127 uses : actions/setup-python@v4
127128 with :
128129 python-version : ' 3.11'
129130
130- - name : Install dependencies
131+ - name : Install Poetry
132+ uses : snok/install-poetry@v1
133+ with :
134+ virtualenvs-create : true
135+ virtualenvs-in-project : true
136+
137+ - name : Load cached venv
138+ id : cached-pip-wheels
139+ uses : actions/cache@v3
140+ with :
141+ path : ~/.cache
142+ key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
143+
144+ - name : Install CGAL on Ubuntu
131145 run : |
132- python -m pip install --upgrade pip
133- pip install build cython numpy
146+ sudo apt-get update
147+ sudo apt-get install -y \
148+ libcgal-dev \
149+ libeigen3-dev \
150+ libgmp-dev \
151+ libmpfr-dev \
152+ build-essential
153+
154+ - name : Install dependencies
155+ run : poetry install --no-interaction --no-root
134156
135157 - name : Set dynamic version
136158 run : |
137159 echo "DYNAMIC_VERSION=0.1.0+dev.$(git rev-parse --short HEAD)" >> $GITHUB_ENV
138160 shell : bash
139161
140- - name : Build sdist
162+ - name : Poetry build
141163 env :
142164 CGAL_ALPHA_WRAPPING_VERSION : ${{ env.DYNAMIC_VERSION }}
143- run : python setup.py sdist
165+ run : poetry build
144166
145167 - name : Upload sdist
146168 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments