Skip to content

Commit 5c827c3

Browse files
committed
Split CI
1 parent d31db45 commit 5c827c3

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/python.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,24 @@ jobs:
1919
- name: Install Python dependencies
2020
run: |
2121
pip install --upgrade pip
22-
pip install -r requirements.txt
23-
pip install pytest
2422
pip install pybind11
25-
pip install scikit-build
23+
pip install scikit-build-core
24+
pip install pytest
2625
27-
- name: Build libCacheSim-python
26+
- name: Build main libCacheSim
2827
run: |
29-
cmake -B ${{github.workspace}}/build \
30-
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
28+
cmake -B build \
29+
-DCMAKE_BUILD_TYPE=Release \
3130
-DBUILD_PYTHON_BINDING=ON \
3231
-DENABLE_PIC=ON
33-
cmake --build ${{github.workspace}}/build
34-
cd ${{github.workspace}}/libCacheSim-python
32+
cmake --build build -j$(nproc)
33+
34+
- name: Build libCacheSim-python
35+
run: |
36+
cd libCacheSim-python
3537
pip install -e . --no-build-isolation
3638
3739
- name: Run tests
3840
run: |
39-
cd ${{github.workspace}}/libCacheSim-python
40-
pytest tests/
41+
cd libCacheSim-python
42+
pytest tests/ -v

0 commit comments

Comments
 (0)