Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into sam-revamp-dep…
Browse files Browse the repository at this point in the history
…loyment
  • Loading branch information
sam0x17 committed May 10, 2024
2 parents 48d323f + 833364b commit e5e3048
Show file tree
Hide file tree
Showing 75 changed files with 5,381 additions and 36,992 deletions.
51 changes: 22 additions & 29 deletions .github/workflows/check-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ jobs:
- name: cargo fmt
run: cargo fmt --check --all

# runs cargo check --workspace
cargo-check:
name: cargo check
cargo-clippy-default-features:
name: cargo clippy
runs-on: SubtensorCI
strategy:
matrix:
Expand Down Expand Up @@ -117,12 +116,11 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo check --workspace
run: cargo check --workspace
- name: cargo clippy --workspace --all-targets -- -D warnings
run: cargo clippy --workspace --all-targets -- -D warnings

# runs cargo test --workspace
cargo-test:
name: cargo test
cargo-clippy-all-features:
name: cargo clippy --all-features
runs-on: SubtensorCI
strategy:
matrix:
Expand All @@ -147,7 +145,7 @@ jobs:
TARGET: ${{ matrix.rust-target }}
steps:
- name: Check-out repository under $GITHUB_WORKSPACE
uses: actions/checkout@v4
uses: actions/checkout@v2

- name: Install dependencies
run: |
Expand All @@ -161,17 +159,17 @@ jobs:
components: rustfmt, clippy
profile: minimal

- name: Utilize Rust shared cached
- name: Utilize Shared Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo test --workspace
run: cargo test --workspace
- name: cargo clippy --workspace --all-targets --all-features -- -D warnings
run: cargo clippy --workspace --all-targets --all-features -- -D warnings

# runs cargo test --workspace --features=runtime-benchmarks
cargo-test-benchmarks:
name: cargo test w/benchmarks
# runs cargo test --workspace
cargo-test:
name: cargo test
runs-on: SubtensorCI
strategy:
matrix:
Expand Down Expand Up @@ -215,12 +213,12 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo test --workspace --features=runtime-benchmarks
run: cargo test --workspace --features=runtime-benchmarks
- name: cargo test --workspace
run: cargo test --workspace

# runs cargo clippy
clippy:
name: cargo clippy
# runs cargo test --workspace --features=runtime-benchmarks
cargo-test-benchmarks:
name: cargo test w/benchmarks
runs-on: SubtensorCI
strategy:
matrix:
Expand Down Expand Up @@ -264,13 +262,8 @@ jobs:
with:
key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}

- name: cargo clippy
run: |
cargo clippy -- -D clippy::panic \
-D clippy::todo \
-D clippy::unimplemented
# -D clippy::indexing_slicing \
# -D clippy::unwrap_used \
- name: cargo test --workspace --features=runtime-benchmarks
run: cargo test --workspace --features=runtime-benchmarks

# ensures cargo fix has no trivial changes that can be applied
cargo-fix:
Expand Down Expand Up @@ -333,7 +326,7 @@ jobs:
check-feature-propagation:
name: zepter run check
runs-on: ubuntu-latest
runs-on: SubtensorCI

steps:
- name: Install stable Rust
Expand All @@ -355,7 +348,7 @@ jobs:

check-finney-migrations:
name: check finney migrations
runs-on: ubuntu-22.04
runs-on: SubtensorCI
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ specs/*.json
*.orig

# VSCode configuration
.vscode
.vscode

# IntelliJ IDEA configuration
.idea
Loading

0 comments on commit e5e3048

Please sign in to comment.