Skip to content

Commit 9b60cb4

Browse files
authored
Add pip install step to CI (#5)
1 parent 6c79ecf commit 9b60cb4

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/spz.yml

+20-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,19 @@ jobs:
2525
if: runner.os == 'Linux'
2626
run: |
2727
sudo apt-get update
28-
sudo apt-get install -y build-essential cmake ninja-build
28+
sudo apt-get install -y build-essential cmake ninja-build python3-pip
2929
3030
- name: Set up C++ environment on macOS
3131
if: runner.os == 'macOS'
3232
run: |
3333
brew update
34-
brew install cmake ninja
34+
brew install cmake ninja python3
35+
36+
- name: Set up Python 3.10 on Windows
37+
if: runner.os == 'Windows'
38+
uses: actions/setup-python@v5
39+
with:
40+
python-version: '3.10'
3541

3642
- name: Configure CMake with MSBuild (Windows)
3743
if: runner.os == 'Windows'
@@ -57,3 +63,15 @@ jobs:
5763
- name: Build with Ninja (Linux/macOS)
5864
if: runner.os != 'Windows'
5965
run: cmake --build build --parallel
66+
67+
- name: Install Python spz package on macOS using a virtual environment
68+
if: runner.os == 'macOS'
69+
run: |
70+
python3 -m venv venv
71+
source venv/bin/activate
72+
pip install --upgrade pip
73+
pip install .
74+
75+
- name: Install Python spz package on Linux/Windows using pip
76+
if: runner.os != 'macOS'
77+
run: pip3 install .

src/cc/load-spz.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ bool saveSpz(const GaussianCloud &g, std::vector<uint8_t> *out,
558558
data = ss.str();
559559
}
560560
return compressZstd(reinterpret_cast<const uint8_t *>(data.data()),
561-
data.size(), out, compressionLevel);
561+
data.size(), out, compressionLevel, workers);
562562
}
563563

564564
PackedGaussians loadSpzPacked(const uint8_t *data, int size) {

0 commit comments

Comments
 (0)