forked from opentensor/subtensor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into subnet_hyperparameters_fix
- Loading branch information
Showing
54 changed files
with
6,207 additions
and
5,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ env: | |
jobs: | ||
check: | ||
name: Tests targeting ${{ matrix.rust-target }} for OS ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
runs-on: SubtensorCI | ||
|
||
## | ||
# Define multiple targets for builds and tests | ||
|
@@ -86,8 +86,8 @@ jobs: | |
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt update && | ||
sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
sudo apt-get update && | ||
sudo apt-get install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler | ||
- name: Install Rust ${{ matrix.rust-branch }} | ||
uses: actions-rs/[email protected] | ||
|
@@ -100,11 +100,13 @@ jobs: | |
with: | ||
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} | ||
|
||
- name: cargo fmt | ||
run: cargo fmt --check | ||
|
||
## TODO: maybe use `if` conditions in tests to target `--package <name>` | ||
- name: Run tests | ||
- name: cargo test | ||
# timeout-minutes: 30 | ||
run: | | ||
cargo test --tests | ||
run: cargo test --workspace | ||
|
||
- name: Run benchmarks | ||
# timeout-minutes: 30 | ||
|
@@ -114,6 +116,5 @@ jobs: | |
- name: Build executable | ||
# timeout-minutes: 30 | ||
run: | | ||
cargo build --release | ||
run: cargo build --release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.