Skip to content

Commit 048ae17

Browse files
committed
Add tests for PDM also
1 parent c0d5507 commit 048ae17

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

.github/workflows/build-python.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
PYTEST_XDIST_AUTO_NUM_WORKERS: 2
191191
run: pdm run test -m 'slow'
192192
install-poetry:
193-
name: "Check if wheel is able to be installed using Poetry"
193+
name: "Check if wheel is able to be installed using PDM"
194194
runs-on: ubuntu-latest
195195
steps:
196196
- name: Checkout code
@@ -216,4 +216,31 @@ jobs:
216216
cd ./install-run
217217
sed -i 's/^\(python *= *\).*$/\1">=3.10,<3.12"/' pyproject.toml
218218
poetry add "$(ls ../dist/*.whl)"
219+
poetry run python -c "import giskard"
220+
install-pdm:
221+
name: "Check if wheel is able to be installed using Poetry"
222+
runs-on: ubuntu-latest
223+
steps:
224+
- name: Checkout code
225+
uses: actions/[email protected]
226+
- name: Setup PDM
227+
uses: pdm-project/setup-pdm@v3
228+
with:
229+
python-version: '3.10'
230+
cache: false
231+
- name: Build wheel
232+
run: pdm build
233+
- name: Create new project, install wheel and import
234+
run: |
235+
mkdir ./install-run
236+
cd ./install-run
237+
pdm init --python 3.10 -n .
238+
pdm add "$(ls ../dist/*.whl)"
239+
poetry run python -c "import giskard"
240+
- name: Create new project, install wheel (server)
241+
run: |
242+
mkdir ./install-test
243+
cd ./install-test
244+
pdm init --python 3.10 -n .
245+
pdm add "$(ls ../dist/*.whl)[server]"
219246
poetry run python -c "import giskard"

0 commit comments

Comments
 (0)