Skip to content

Implement same colored output in Rust CLI as Python #43

Implement same colored output in Rust CLI as Python

Implement same colored output in Rust CLI as Python #43

Workflow file for this run

name: Rust - test
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- '.github/workflows/**'
- 'python/magika/config/content_types_config.json'
- 'python/magika/models/standard_v1/model.onnx'
- 'rust/**'
- 'tests_data/features_extraction/reference.json.gz'
pull_request:
paths:
- '.github/workflows/**'
- 'python/magika/config/content_types_config.json'
- 'python/magika/models/standard_v1/model.onnx'
- 'rust/**'
- 'tests_data/features_extraction/reference.json.gz'
permissions:
contents: read
jobs:
unit-testing:
runs-on: "ubuntu-latest"
strategy:
matrix:
toolchain: ["stable", "nightly"]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # pin@v4
- run: rustup default ${{ matrix.toolchain }}
- run: rustup component add rustfmt clippy
- run: ./test.sh
working-directory: rust
- run: ./sync.sh --check
working-directory: rust