diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b54851d0..7f3a8e42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: submodules: true - run: rustup update - run: cargo build - - run: cargo test --verbose --all + - run: cargo test --verbose --all --all-features --exclude oxigraph_python env: RUST_BACKTRACE: 1 @@ -50,8 +50,9 @@ jobs: - uses: actions/setup-python@v2 with: python-version: 3.5 - - run: python -m pip install --upgrade pip maturin - - run: maturin develop + - run: python -m venv python/tests/venv + - run: source python/tests/venv/bin/activate && pip install --upgrade pip maturin + - run: source tests/venv/bin/activate && maturin develop working-directory: ./python - - run: python -m unittest + - run: source venv/bin/activate && python -m unittest working-directory: ./python/tests diff --git a/lib/src/store/sled.rs b/lib/src/store/sled.rs index 8799531a..d3a5bbb3 100644 --- a/lib/src/store/sled.rs +++ b/lib/src/store/sled.rs @@ -40,9 +40,9 @@ use std::{fmt, str}; /// let prepared_query = store.prepare_query("SELECT ?s WHERE { ?s ?p ?o }", QueryOptions::default())?; /// if let QueryResult::Solutions(mut solutions) = prepared_query.exec()? { /// assert_eq!(solutions.next().unwrap()?.get("s"), Some(&ex.into())); -/// } +/// }; /// # -/// # } +/// # }; /// # remove_dir_all("example.db")?; /// # Result::Ok(()) /// ```