title: Cargo test keeps failing on github actions but passes on local machine
body: <p>Unit-tests are giving this error:</p>
  <pre><code>/home/runner/.cargo/bin/cargo unit-test --locked
      Updating crates.io index
      Updating git repository `https://github.com/enigmampc/SecretNetwork`
      Updating git repository `https://github.com/Haseeb30000/secret-toolkit`
   Downloading crates ...
    Downloaded rand_chacha v0.2.2
  .....
  .....
    Downloaded rust_decimal v1.25.0
  error: failed to parse manifest at `/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.25.0/Cargo.toml`
  Error: failed to parse manifest at `/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/rust_decimal-1.25.0/Cargo.toml`
  Caused by:
    failed to parse the `edition` key
  Caused by:
    this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
  Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
  </code></pre>
  <p>I keep changed the version of rust_decimal to v-1.25.0 but it still gives error.
  Here's cargo.toml</p>
  <pre><code>[package]
  
  name = &quot;pool_party&quot;
  version = &quot;0.1.0&quot;
  edition = &quot;2018&quot;
  
  exclude = [
    # Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
    &quot;contract.wasm&quot;,
    &quot;hash.txt&quot;,
  ]
  
  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
  
  [lib]
  crate-type = [&quot;cdylib&quot;, &quot;rlib&quot;]
  
  [profile.release]
  opt-level = 3
  debug = false
  rpath = false
  lto = true
  debug-assertions = false
  codegen-units = 1
  panic = 'abort'
  incremental = false
  overflow-checks = true
  
  [features]
  # for quicker tests, cargo test --lib
  # for more explicit tests, cargo test --features=backtraces
  backtraces = [&quot;cosmwasm-std/backtraces&quot;]
  
  [dependencies]
  cosmwasm-std = { git = &quot;https://github.com/enigmampc/SecretNetwork&quot;, tag = &quot;v1.0.0&quot;, features = [&quot;staking&quot;] }
  cosmwasm-storage = { git = &quot;https://github.com/enigmampc/SecretNetwork&quot;, tag = &quot;v1.0.0&quot; }
  secret-toolkit = { git = &quot;https://github.com/Haseeb30000/secret-toolkit&quot;,  branch = &quot;master&quot; }
  
  
  schemars = &quot;0.7&quot;
  serde = { version = &quot;1.0.103&quot;, default-features = false, features = [&quot;derive&quot;] }
  serde_json = &quot;1.0.1&quot;
  snafu = { version = &quot;0.6.3&quot; }
  bincode2 = &quot;2.0.1&quot;
  subtle = { version = &quot;2.2.3&quot;, default-features = false }
  base64 = &quot;0.12.3&quot;
  hex = &quot;0.4.2&quot;
  rust_decimal = { version = &quot;1.25.0&quot;, default-features = false}
  
  rand_chacha = { version = &quot;0.2.2&quot;, default-features = false }
  #rand_core = { version =  &quot;0.5.1&quot;, default-features = false }
  rand = { version = &quot;0.7.3&quot; }
  sha2 = { version = &quot;0.9.1&quot;, default-features = false }
  
  [dev-dependencies]
  cosmwasm-schema = { version = &quot;0.10.0&quot; }
  </code></pre>
  <p>All <code>cargo build</code> and <code>cargo unit-test</code> works just fine.
  cargo test passes on my local macbook pro (M1) but fails on github actions with the error</p>
  <p>Here the .yaml</p>
  <pre><code># Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
  
  on: [push, pull_request]
  
  name: Basic
  
  jobs:
  
    test:
      name: Test Suite
      runs-on: ubuntu-latest
      steps:
        - name: Checkout sources
          uses: actions/checkout@v2
  
        - name: Install stable toolchain
          uses: actions-rs/toolchain@v1
          with:
            profile: minimal
            toolchain: 1.46.0
            target: wasm32-unknown-unknown
            override: true
  
        - name: Run unit tests
          uses: actions-rs/cargo@v1
          with:
            command: unit-test
            args: --locked
          env:
            RUST_BACKTRACE: 1
  
        - name: Compile WASM contract
          uses: actions-rs/cargo@v1
          with:
            command: wasm
            args: --locked
          env:
            RUSTFLAGS: &quot;-C link-arg=-s&quot;
  
        - name: Run integration tests
          uses: actions-rs/cargo@v1
          with:
            command: integration-test
            args: --locked
  
  
    lints:
      name: Lints
      runs-on: ubuntu-latest
      steps:
        - name: Checkout sources
          uses: actions/checkout@v2
  
        - name: Install stable toolchain
          uses: actions-rs/toolchain@v1
          with:
            profile: minimal
            toolchain: 1.46.0
            override: true
            components: rustfmt, clippy
  
        - name: Run cargo fmt
          uses: actions-rs/cargo@v1
          with:
            command: fmt
            args: --all -- --check
  
        - name: Run cargo clippy
          uses: actions-rs/cargo@v1
          with:
            command: clippy
            args: -- -D warnings
  
        # TODO: we should check
        # CHANGES_IN_REPO=$(git status --porcelain)
        # after this, but I don't know how
        - name: Generate Schema
          uses: actions-rs/cargo@v1
          with:
            command: schema
            args: --locked
  </code></pre>
  <p>The cargo test is failing with a <code>failed with exit code 101</code>. I have changed from rust_decimal=1.17.0 to rust_decimal=1.25.0 but it still fails</p>