Fixes CI tests

pull/43/head
Tpt 4 years ago
parent 4ec7caa146
commit bfd94ef43a
  1. 9
      .github/workflows/build.yml
  2. 4
      lib/src/store/sled.rs

@ -27,7 +27,7 @@ jobs:
submodules: true submodules: true
- run: rustup update - run: rustup update
- run: cargo build - run: cargo build
- run: cargo test --verbose --all - run: cargo test --verbose --all --all-features --exclude oxigraph_python
env: env:
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
@ -50,8 +50,9 @@ jobs:
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2
with: with:
python-version: 3.5 python-version: 3.5
- run: python -m pip install --upgrade pip maturin - run: python -m venv python/tests/venv
- run: maturin develop - run: source python/tests/venv/bin/activate && pip install --upgrade pip maturin
- run: source tests/venv/bin/activate && maturin develop
working-directory: ./python working-directory: ./python
- run: python -m unittest - run: source venv/bin/activate && python -m unittest
working-directory: ./python/tests working-directory: ./python/tests

@ -40,9 +40,9 @@ use std::{fmt, str};
/// let prepared_query = store.prepare_query("SELECT ?s WHERE { ?s ?p ?o }", QueryOptions::default())?; /// let prepared_query = store.prepare_query("SELECT ?s WHERE { ?s ?p ?o }", QueryOptions::default())?;
/// if let QueryResult::Solutions(mut solutions) = prepared_query.exec()? { /// if let QueryResult::Solutions(mut solutions) = prepared_query.exec()? {
/// assert_eq!(solutions.next().unwrap()?.get("s"), Some(&ex.into())); /// assert_eq!(solutions.next().unwrap()?.get("s"), Some(&ex.into()));
/// } /// };
/// # /// #
/// # } /// # };
/// # remove_dir_all("example.db")?; /// # remove_dir_all("example.db")?;
/// # Result::Ok(()) /// # Result::Ok(())
/// ``` /// ```

Loading…
Cancel
Save