chore: Updated release script for new metadata #9
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
# This workflow will build and test the Rust code in this repository. There are | |
# separate workflows for testing the python portion of the code base. | |
# | |
# This file is *not* generated from automation and is manually maintained. | |
# | |
name: "[tower] Test rust" | |
on: | |
pull_request: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down | |
RUST_BACKTRACE: 1 | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Rust | |
run: rustup show | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
save-if: ${{ github.ref_name == 'main' }} | |
- name: Compile tests | |
run: > | |
cargo test --all-features --no-run | |
- name: Run tests | |
if: github.ref_name != 'main' | |
run: > | |
cargo test --all-features | |
# integration-test: | |
# runs-on: ${{ matrix.os }} | |
# strategy: | |
# fail-fast: true | |
# matrix: | |
# os: [ubuntu-latest, windows-latest] | |
# | |
# steps: | |
# - uses: actions/checkout@v4 | |
# | |
# - name: Set up Rust | |
# run: rustup show | |
# | |
# - name: Cache Rust | |
# uses: Swatinem/rust-cache@v2 | |
# with: | |
# save-if: ${{ github.ref_name == 'main' }} | |
# | |
# - name: Compile integration tests | |
# run: cargo test --all-features --test it --no-run | |
# | |
# - name: Run integration tests | |
# if: github.ref_name != 'main' | |
# run: cargo test --all-features -p polars --test it |