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.
143 lines
3.8 KiB
143 lines
3.8 KiB
3 years ago
|
name: Change tests
|
||
5 years ago
|
|
||
4 years ago
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
pull_request:
|
||
|
branches:
|
||
|
- master
|
||
4 years ago
|
schedule:
|
||
|
- cron: "0 0 * * 0"
|
||
5 years ago
|
|
||
|
jobs:
|
||
5 years ago
|
fmt:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
5 years ago
|
- uses: actions/checkout@v2
|
||
4 years ago
|
- run: rustup update && rustup component add rustfmt
|
||
5 years ago
|
- run: cargo fmt -- --check
|
||
|
|
||
|
clippy:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
5 years ago
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
4 years ago
|
- run: rustup update && rustup component add clippy
|
||
3 years ago
|
- run: cargo clippy --all-targets --all-features
|
||
5 years ago
|
|
||
3 years ago
|
deny:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
||
|
|
||
3 years ago
|
test_linux:
|
||
|
runs-on: ubuntu-latest
|
||
5 years ago
|
steps:
|
||
4 years ago
|
- uses: actions/checkout@v2
|
||
5 years ago
|
with:
|
||
|
submodules: true
|
||
5 years ago
|
- run: rustup update
|
||
3 years ago
|
- run: cargo test --all-features
|
||
5 years ago
|
env:
|
||
5 years ago
|
RUST_BACKTRACE: 1
|
||
|
|
||
3 years ago
|
test_windows:
|
||
|
runs-on: windows-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
submodules: true
|
||
|
- run: rustup update
|
||
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
|
||
|
- run: cargo test --all-features
|
||
|
env:
|
||
|
RUST_BACKTRACE: 1
|
||
|
|
||
3 years ago
|
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
|
||
|
|
||
5 years ago
|
python:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
5 years ago
|
- run: rustup update
|
||
|
- uses: actions/setup-python@v2
|
||
|
with:
|
||
3 years ago
|
python-version: "3.10"
|
||
4 years ago
|
- run: python -m venv python/venv
|
||
3 years ago
|
- run: source python/venv/bin/activate && pip install --upgrade 'maturin~=0.12' sphinx
|
||
4 years ago
|
- run: source venv/bin/activate && maturin develop
|
||
5 years ago
|
working-directory: ./python
|
||
4 years ago
|
- run: source ../venv/bin/activate && python -m unittest
|
||
5 years ago
|
working-directory: ./python/tests
|
||
4 years ago
|
- run: source ../venv/bin/activate && sphinx-build -M doctest . build
|
||
4 years ago
|
working-directory: ./python/docs
|
||
4 years ago
|
- run: source ../venv/bin/activate && sphinx-build -M html . build
|
||
4 years ago
|
working-directory: ./python/docs
|
||
|
|
||
4 years ago
|
python_wheel_linux:
|
||
|
runs-on: ubuntu-latest
|
||
3 years ago
|
needs: python
|
||
4 years ago
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
3 years ago
|
- uses: messense/maturin-action@v1
|
||
4 years ago
|
with:
|
||
3 years ago
|
manylinux: 2014
|
||
|
container: messense/manylinux2014-cross:x86_64
|
||
3 years ago
|
command: build
|
||
3 years ago
|
args: -m python/Cargo.toml
|
||
3 years ago
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest
|
||
|
working-directory: ./python/tests
|
||
4 years ago
|
|
||
|
python_wheel_mac:
|
||
|
runs-on: macos-latest
|
||
3 years ago
|
needs: python
|
||
4 years ago
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
3 years ago
|
- uses: messense/maturin-action@v1
|
||
4 years ago
|
with:
|
||
3 years ago
|
command: build
|
||
|
args: -m python/Cargo.toml --universal2
|
||
3 years ago
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest
|
||
|
working-directory: ./python/tests
|
||
4 years ago
|
|
||
|
python_wheel_windows:
|
||
|
runs-on: windows-latest
|
||
3 years ago
|
needs: python
|
||
3 years ago
|
strategy:
|
||
|
matrix:
|
||
|
architecture: ["x86", "x64"]
|
||
4 years ago
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
3 years ago
|
- uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: 3.7
|
||
|
architecture: ${{ matrix.architecture }}
|
||
3 years ago
|
- run: Remove-Item -LiteralPath "C:\msys64\" -Force -Recurse
|
||
3 years ago
|
- uses: messense/maturin-action@v1
|
||
4 years ago
|
with:
|
||
3 years ago
|
command: build
|
||
3 years ago
|
target: ${{ matrix.architecture }}
|
||
3 years ago
|
args: -m python/Cargo.toml
|
||
3 years ago
|
- run: pip install pyoxigraph --no-index --find-links ../../target/wheels && python -m unittest
|
||
|
working-directory: ./python/tests
|