Consolidate the Rust and Sqllogictest tests #14
This file contains hidden or 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: Run Tests | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Set up Rust | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| sudo apt-get install -y gcc curl pkg-config libssl-dev make | |
| cargo install cargo-tarpaulin | |
| - name: Build Infera and Run Sqllogictest Tests | |
| run: | | |
| make release | |
| make test | |
| - name: Run Rust Tests and Generate Coverage Report for Rust Code | |
| run: make rust-coverage # Generates a coverage report for Infera crate | |
| - name: Upload Coverage Reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| continue-on-error: false |