Merge pull request #1 from galleymemsql/main #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
unit-tests: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
run: | | |
set -e | |
rustup update stable --no-self-update | |
rustup default stable | |
- name: Run tests | |
run: cargo test | |
db-tests: | |
name: Run db tests | |
runs-on: ubuntu-latest | |
environment: Testing | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust (with Wasm targets) | |
run: | | |
set -e | |
rustup update stable --no-self-update | |
rustup default stable | |
rustup target add wasm32-wasi | |
rustup target add wasm32-unknown-unknown | |
- name: Build Wasm | |
run: cargo build --target wasm32-wasi | |
- name: Setup db tests | |
run: pip install singlestoredb[pytest] | |
- name: Run db tests | |
env: | |
SINGLESTORE_LICENSE: ${{ secrets.SINGLESTORE_LICENSE }} | |
run: pytest | |