Parse binary operations with correct operator precedence #660
Workflow file for this run
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: Check | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
# `workflow_dispatch` allows CodSpeed to trigger backtest | |
# performance analysis in order to generate initial data. | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
CI: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: setup toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
- uses: Swatinem/rust-cache@v2 | |
# Required for compatibility unit tests | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Build | |
run: cargo build | |
- name: Run tests | |
env: | |
RUST_BACKTRACE: 1 | |
run: cargo test | |
- name: rustfmt | |
run: make format-check | |
- name: clippy | |
run: make lint | |
compatibility-test-complete: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: Swatinem/rust-cache@v2 | |
- name: setup toolchain | |
uses: hecrj/setup-rust-action@v2 | |
with: | |
rust-version: stable | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Run Compatibility Tests | |
run: | | |
cargo run -p enderpy-compat --bin enderpy-compat | |
benchmarks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup rust | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build the benchmark target(s) | |
run: | | |
cargo install cargo-codspeed --locked | |
cargo codspeed build --features codspeed | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
# coverage: | |
# name: coverage | |
# runs-on: ubuntu-latest | |
# container: | |
# image: xd009642/tarpaulin:develop-nightly | |
# options: --security-opt seccomp=unconfined | |
# steps: | |
# - uses: actions/checkout@v4 | |
# with: | |
# submodules: true | |
# - name: Generate code coverage | |
# run: | | |
# cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml | |
# - name: Upload to codecov.io | |
# uses: codecov/codecov-action@v4 | |
# with: | |
# token: ${{secrets.CODECOV_TOKEN}} | |
# fail_ci_if_error: false |