Skip to content

Commit

Permalink
Disable nightly+beta CI (#457)
Browse files Browse the repository at this point in the history
* disable nightly+beta ci

* fix clippy

* remove scheduled.yml
  • Loading branch information
Buckram123 authored Jul 30, 2024
1 parent f0dafb2 commit 84a127a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 57 deletions.
48 changes: 0 additions & 48 deletions .github/workflows/scheduled.yml

This file was deleted.

4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
name: ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, beta]
toolchain: [
stable, # beta failing to some crate using multiple `thread::set_current`
]
fail-fast: false # beta may fail we shouldn't care
steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions cw-orch-daemon/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ mod tests {
chain.grpc_urls = grpcs;

let build_res = DaemonAsync::builder(chain)
.is_test(true)
.deployment_id("v0.1.0")
.build_sender(())
.await;
Expand Down
4 changes: 2 additions & 2 deletions cw-orch-daemon/tests/tx_resp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ fn test_timestamp() {
let ts_time = timestamp.time();
asserting!("timestamp time is equal to dataset timestamp")
.that(&ts_time.to_string())
.is_equal_to(&String::from("00:27:04"));
.is_equal_to(String::from("00:27:04"));

let ts_date = timestamp.date_naive();
asserting!("timestamp date is equal to dataset timestamp")
.that(&ts_date.to_string())
.is_equal_to(&String::from("2023-04-07"));
.is_equal_to(String::from("2023-04-07"));
}

#[test]
Expand Down
4 changes: 2 additions & 2 deletions packages/clone-testing/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ mod test {
let code_id = (1 + LOCAL_RUST_CODE_OFFSET) as u64;
asserting("contract initialized properly")
.that(&init_res.events[0].attributes[0].value)
.is_equal_to(&code_id.to_string());
.is_equal_to(code_id.to_string());

let init_msg = cw20_base::msg::InstantiateMsg {
name: String::from("Token"),
Expand Down Expand Up @@ -605,7 +605,7 @@ mod test {

asserting("that exect passed on correctly")
.that(&exec_res.events[1].attributes[1].value)
.is_equal_to(&String::from("mint"));
.is_equal_to(String::from("mint"));

let query_res = chain
.query::<cw20_base::msg::QueryMsg, BalanceResponse>(
Expand Down
2 changes: 1 addition & 1 deletion packages/cw-orch-core/src/environment/index_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mod index_response_test {
fn test_instantiated_contract_address(idxres: &dyn IndexResponse) -> anyhow::Result<()> {
asserting!("instantiated contract_address is ")
.that(&idxres.instantiated_contract_address()?)
.is_equal_to(&Addr::unchecked(CONTRACT_ADDRESS));
.is_equal_to(Addr::unchecked(CONTRACT_ADDRESS));

Ok(())
}
Expand Down
6 changes: 3 additions & 3 deletions packages/cw-orch-mock/src/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ mod test {
let init_res = chain.upload_custom("cw20", contract_source).unwrap();
asserting("contract initialized properly")
.that(&init_res.events[0].attributes[0].value)
.is_equal_to(&String::from("1"));
.is_equal_to(String::from("1"));

let init_msg = cw20_base::msg::InstantiateMsg {
name: String::from("Token"),
Expand Down Expand Up @@ -351,7 +351,7 @@ mod test {

asserting("that exect passed on correctly")
.that(&exec_res.events[1].attributes[1].value)
.is_equal_to(&String::from("mint"));
.is_equal_to(String::from("mint"));

let query_res = chain
.query::<cw20_base::msg::QueryMsg, Response>(
Expand All @@ -364,7 +364,7 @@ mod test {

asserting("that query passed on correctly")
.that(&query_res.attributes[1].value)
.is_equal_to(&String::from("0"));
.is_equal_to(String::from("0"));

let migration_res = chain.migrate(&cw20_base::msg::MigrateMsg {}, 1, &contract_address);
asserting("that migration passed on correctly")
Expand Down

0 comments on commit 84a127a

Please sign in to comment.