Use proper grpc protocol for flight address in config and readme #40
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: build | |
on: | |
push: | |
branches: ['trunk'] | |
pull_request: | |
branches: ['trunk'] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.toolchain }} | |
components: clippy | |
override: true | |
- name: Install required cargo | |
run: cargo install clippy-sarif sarif-fmt | |
- name: Run rust-clippy | |
run: cargo clippy | |
--all-features | |
--message-format=json | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt | |
continue-on-error: true | |
- name: Upload analysis results to GitHub | |
uses: github/codeql-action/upload-sarif@v1 | |
with: | |
sarif_file: rust-clippy-results.sarif | |
wait-for-processing: true | |
- name: Build | |
run: cargo build --verbose | |
- name: install Spice (https://install.spiceai.org) | |
run: | | |
curl https://install.spiceai.org | /bin/bash | |
echo "$HOME/.spice/bin" >> $GITHUB_PATH | |
- name: Init and start spice app | |
run: | | |
spice init spice_qs | |
cd spice_qs | |
spice add spiceai/quickstart | |
spice run &> spice.log & | |
# time to initialize added dataset | |
sleep 10 | |
- name: Run tests | |
run: cargo test --verbose | |
env: | |
API_KEY: ${{ secrets.TEST_API_KEY }} |