diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d1808b393..81c4d23c1f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,12 +12,48 @@ env: # RUSTFLAGS: "-D warnings" # it needs some works to enable this flag jobs: - tests: + test-on-ubuntu: + runs-on: ubuntu-latest + steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: rustfmt + - name: Setup Python # Set Python version + uses: actions/setup-python@v4 + with: + python-version: 3.8 + # Install pip and pytest + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r .github/workflows/requirements.txt + - name: Execute test-all + run: ./test-all + shell: bash + test-on-others: runs-on: ${{ matrix.os }} strategy: matrix: os: - - ubuntu-latest - macos-latest - windows-latest steps: @@ -54,4 +90,4 @@ jobs: # toolchain: ${{ matrix.rust }} # override: true # components: clippy -# - run: cargo clippy \ No newline at end of file +# - run: cargo clippy diff --git a/Cargo.toml b/Cargo.toml index 9fd2f997de..0bcc319149 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ byteorder = "1.4.3" crc = "3.0.0" half = "2.1.0" # This is used internally but not intended to be exposed through the API. -protobuf = "=2.27.1" +protobuf = "2.27.1" # Enables conversions between ndarray::Array objects and tensorflow::Tensor ndarray = { version = "0.15.6", optional = true } rustversion = "1.0.9"