Shallow copy of npy_array_t #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install libzip | |
run: sudo apt install -y libzip-dev | |
- uses: actions/checkout@v3 | |
- name: configure | |
run: ./configure | |
- name: make | |
run: make | |
- name: make examples | |
run: | | |
cd example | |
make | |
- name: Run examples | |
run: | | |
cd example | |
# Since the library is not installed (maybe test that as well?) We must set LD_LIBRARY_PATH | |
export LD_LIBRARY_PATH=./.. | |
./how_to_save | |
diff my_4_by_3_array_shortcut.npy my_4_by_3_array.npy | |
./how_to_save_npz | |
./how_to_load my_4_by_3_array_shortcut.npy | |
./how_to_load_npz iarray_and_darray.npz | |
- name: Test install | |
run: | | |
sudo make install | |
unset LD_LIBRARY_PATH | |
cd example | |
./how_to_save |