Add more benchmarks for type checker #614
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"] | |
env: | |
CARGO_TERM_COLOR: always | |
CI: true | |
jobs: | |
test: | |
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 | |
components: rustfmt, clippy | |
# 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 | |
# 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 |