Skip to content

TST: avoid a memory leak by closing the decoder #49

TST: avoid a memory leak by closing the decoder

TST: avoid a memory leak by closing the decoder #49

Workflow file for this run

name: Run Tests
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
RUST_LOG: info
jobs:
tests:
strategy:
matrix:
include:
- os: macos-latest
- os: windows-latest
toolchain-suffix: -gnu
- os: windows-latest
toolchain-suffix: -msvc
- os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Clone Git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable${{ matrix.toolchain-suffix }}
- name: Run tests
run: |
cargo test --workspace --all-features
check-code:
runs-on: ubuntu-latest
steps:
- name: Clone Git repository
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt, clippy
- name: rustfmt
run: |
cargo fmt --all --check
- name: clippy
run: |
cargo clippy --all-targets --all-features -- -D warnings
- name: Build docs
run: |
cargo rustdoc --all-features -- -D warnings
- name: Upload docs
uses: actions/upload-artifact@v3
with:
name: docs
path: target/doc/*
- name: packaging
run: |
cargo package --verbose