1- name : Test
1+ name : CI
22
33on :
44 push :
@@ -51,20 +51,20 @@ jobs:
5151 run : cargo build --no-default-features --verbose
5252 - name : Build with default features
5353 run : cargo build --verbose
54- - name : Install numpy and poetry
55- run : pip install numpy poetry
54+ - name : Install test dependencies
55+ run : |
56+ python -m pip install --upgrade pip
57+ pip install maturin numpy poetry
5658 - name : Run cargo test
5759 run : cargo test --verbose
5860 - name : Test Examples
5961 run : |
60- for example_dir in examples/*; do
61- if [ $example != 'examples/linalg' ]; then
62- pushd $example_dir
63- poetry install
64- poetry run maturin develop
65- poetry run pytest
66- popd
67- fi
62+ for example_dir in 'examples/simple-extension'; do
63+ pushd $example_dir && \
64+ poetry install && \
65+ poetry run maturin develop && \
66+ poetry run pytest && \
67+ popd
6868 done
6969 shell : bash
7070 env :
@@ -80,21 +80,17 @@ jobs:
8080 python-version : 3.8
8181 - name : Install gfortran
8282 run : |
83- apt update
84- apt install -y gfortran
83+ sudo apt install -y gfortran
8584 - name : Install Rust
8685 uses : actions-rs/toolchain@v1
8786 with :
8887 toolchain : stable
8988 default : true
90- - run : rustup set default-host ${{ matrix.platform.rust-target }}
91- - name : Install numpy and poetry
92- run : pip install numpy poetry
89+ - name : Install maturin and poetry
90+ run : pip install maturin poetry
9391 - name : Test Examples
9492 run : |
95- cd examples/ndarray-linalg
96- poetry install
97- poetry run maturin develop
98- poetry run pytest
99- env :
100- RUST_BACKTRACE : 1
93+ cd examples/linalg && \
94+ poetry install && \
95+ poetry run maturin develop && \
96+ poetry run pytest
0 commit comments