Skip to content
This repository was archived by the owner on Jan 3, 2025. It is now read-only.

Commit 87ed598

Browse files
committed
👷 Update CI workflow to streamline dependency installation and testing process
1 parent a66a1b4 commit 87ed598

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
python-version: ${{ matrix.python }}
127127
cache: true
128128

129+
- name: Install dependencies
130+
run: pdm install -G :all
131+
129132
- uses: ilammy/msvc-dev-cmd@v1
130133
id: msvc-env
131134
if: startsWith(matrix.os, 'windows')
@@ -143,9 +146,6 @@ jobs:
143146
echo "OpenCV_DIR=$(pwd)/opencv/lib/cmake/opencv4" >> $GITHUB_ENV
144147
echo "OpenCV_STATIC=ON" >> $GITHUB_ENV
145148
146-
- name: Install dependencies
147-
run: pdm install -G :all
148-
149149
- name: Build wheel
150150
run: pdm build -v
151151

@@ -154,13 +154,6 @@ jobs:
154154
name: wheel-${{matrix.os}}-${{matrix.python}}
155155
path: ./dist/*.whl
156156

157-
- name: Test wheel import
158-
env:
159-
SYSTEM_VERSION_COMPAT: 0
160-
run: |
161-
pip install dist/*.whl
162-
python -vc "from orb_slam3 import ORBExtractor"
163-
164157
test:
165158
name: Test Wheel
166159
needs: [build]
@@ -202,7 +195,8 @@ jobs:
202195

203196
- name: Install dependencies
204197
run: |
205-
pdm install -G :all
198+
pdm install -G test --no-self
199+
pdm add dist/*.whl --no-lock
206200
207201
- name: Run tests
208202
run: |
@@ -232,7 +226,7 @@ jobs:
232226

233227
release:
234228
name: Release
235-
needs: [cleanup]
229+
needs: [build, test]
236230
if: startsWith(github.ref, 'refs/tags/v') && github.head_ref == ''
237231
runs-on: ubuntu-latest
238232

0 commit comments

Comments
 (0)