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

Commit

Permalink
👷 Update CI workflow to streamline dependency installation and testin…
Browse files Browse the repository at this point in the history
…g process
  • Loading branch information
mnixry committed Jan 2, 2025
1 parent a66a1b4 commit 33783ea
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ jobs:
python-version: ${{ matrix.python }}
cache: true

- name: Install dependencies
run: pdm install -G :all --no-self

- uses: ilammy/msvc-dev-cmd@v1
id: msvc-env
if: startsWith(matrix.os, 'windows')
Expand All @@ -143,9 +146,6 @@ jobs:
echo "OpenCV_DIR=$(pwd)/opencv/lib/cmake/opencv4" >> $GITHUB_ENV
echo "OpenCV_STATIC=ON" >> $GITHUB_ENV
- name: Install dependencies
run: pdm install -G :all

- name: Build wheel
run: pdm build -v

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

- name: Test wheel import
env:
SYSTEM_VERSION_COMPAT: 0
run: |
pip install dist/*.whl
python -vc "from orb_slam3 import ORBExtractor"
test:
name: Test Wheel
needs: [build]
Expand Down Expand Up @@ -202,7 +195,8 @@ jobs:

- name: Install dependencies
run: |
pdm install -G :all
pdm install -G test --no-self
pdm add dist/*.whl --no-lock
- name: Run tests
run: |
Expand Down Expand Up @@ -232,7 +226,7 @@ jobs:

release:
name: Release
needs: [cleanup]
needs: [build, test]
if: startsWith(github.ref, 'refs/tags/v') && github.head_ref == ''
runs-on: ubuntu-latest

Expand Down

0 comments on commit 33783ea

Please sign in to comment.