Skip to content

Commit

Permalink
Merge pull request #3 from rvp-group/pypi_devel
Browse files Browse the repository at this point in the history
CI/CD Integration
  • Loading branch information
digiamm authored Jun 10, 2024
2 parents 919c6e1 + 407ae9b commit 49152c2
Show file tree
Hide file tree
Showing 49 changed files with 437 additions and 279 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pypi_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish to PyPI.org
on:
release:
types: [published]
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
run: pipx run build --sdist ${{github.workspace}}
- uses: actions/upload-artifact@v3
with:
path: dist/*.tar.gz

pypi:
if: github.event_name == 'release'
needs: build_sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Python API Build
on:
push:
branches: ["main"]
pull_request:
branches: []

jobs:
python_package:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- name: Set up Python3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Build pip package
run: |
python -m pip install .
8 changes: 5 additions & 3 deletions .github/workflows/pythonbuild_devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python3
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Build pip package
run: |
python -m pip install --verbose ./python/
python -m pip install --verbose .
31 changes: 0 additions & 31 deletions mad-icp/CMakeLists.txt

This file was deleted.

161 changes: 0 additions & 161 deletions mad-icp/apps/mad-icp.py

This file was deleted.

18 changes: 0 additions & 18 deletions mad-icp/src/odometry/CMakeLists.txt

This file was deleted.

50 changes: 0 additions & 50 deletions mad-icp/src/odometry/pybind/pypeline.cpp

This file was deleted.

6 changes: 0 additions & 6 deletions mad-icp/src/tools/CMakeLists.txt

This file was deleted.

File renamed without changes.
Loading

0 comments on commit 49152c2

Please sign in to comment.