Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.5 KiB
58 lines
1.5 KiB
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
fmt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup update
|
|
- run: rustup component add rustfmt
|
|
- run: cargo fmt -- --check
|
|
|
|
clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup update
|
|
- run: rustup component add clippy
|
|
- run: cargo clippy --all --all-targets
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
submodules: true
|
|
- run: rustup update
|
|
- run: cargo build
|
|
- run: cargo test --verbose --all --all-features --exclude oxigraph_python
|
|
env:
|
|
RUST_BACKTRACE: 1
|
|
|
|
js:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup update
|
|
- run: cargo install wasm-pack
|
|
- run: npm install
|
|
working-directory: ./js
|
|
- run: npm test
|
|
working-directory: ./js
|
|
|
|
python:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup update
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.5
|
|
- 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: source venv/bin/activate && python -m unittest
|
|
working-directory: ./python/tests
|
|
|