Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[unstable]
public-dependency = true

[env]
RUST_TEST_THREADS = "2"
31 changes: 22 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ env:
CARGO_TERM_COLOR: always

jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install nightly --profile minimal --component rustfmt
- run: cargo +nightly fmt -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal --component clippy
- run: cargo clippy --no-deps -- -D warnings

test:
name: CI
runs-on: ubuntu-latest
Expand All @@ -35,15 +51,12 @@ jobs:
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Install Tools
run: cargo install -q cargo-tarpaulin || true

- name: Check Format
run: cargo fmt --check
# - name: Install Tools
# run: cargo install -q cargo-tarpaulin || true

- name: Clippy Lint
run: cargo clippy --no-deps --features=wgpu
# - name: Build and Test
# run: |
# cargo tarpaulin --features=wgpu --coveralls=${{ secrets.COVERALLS_REPO_TOKEN }}

- name: Build and Test
run: |
cargo tarpaulin --features=wgpu --coveralls=${{ secrets.COVERALLS_REPO_TOKEN }}
run: cargo test --features=wgpu
1 change: 0 additions & 1 deletion .run/Docs.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<option name="redirectInputPath" value="" />
<method v="2">
<option name="RunConfigurationTask" enabled="false" run_configuration_name="Fix" run_configuration_type="CargoCommandRunConfiguration" />
<option name="RunConfigurationTask" enabled="false" run_configuration_name="Format" run_configuration_type="CargoCommandRunConfiguration" />
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
Expand Down
23 changes: 0 additions & 23 deletions .run/Fast Test.run.xml

This file was deleted.

4 changes: 3 additions & 1 deletion .run/Fix.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2" />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Format" run_configuration_type="CargoCommandRunConfiguration" />
</method>
</configuration>
</component>
6 changes: 4 additions & 2 deletions .run/Format.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
<env name="CINIC10_PATH" value="$CINIC10_PATH$" />
</envs>
<option name="emulateTerminal" value="true" />
<option name="channel" value="STABLE" />
<option name="channel" value="NIGHTLY" />
<option name="requiredFeatures" value="true" />
<option name="allFeatures" value="false" />
<option name="withSudo" value="false" />
<option name="buildTarget" value="REMOTE" />
<option name="backtrace" value="SHORT" />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2" />
<method v="2">
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>
20 changes: 0 additions & 20 deletions .run/Nextest.run.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .run/Run firehose_loadtest.run.xml

This file was deleted.

6 changes: 2 additions & 4 deletions .run/Test.run.xml → .run/Test (cuda).run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test" type="CargoCommandRunConfiguration" factoryName="Cargo Command" focusToolWindowBeforeRun="true">
<configuration default="false" name="Test (cuda)" type="CargoCommandRunConfiguration" factoryName="Cargo Command" focusToolWindowBeforeRun="true">
<option name="buildProfileId" value="test" />
<option name="command" value="test --features cuda" />
<option name="command" value="test --features cuda,bunsen/cuda" />
<option name="workingDirectory" value="file://$PROJECT_DIR$" />
<envs>
<env name="CINIC10_PATH" value="/media/Data/CINIC-10" />
Expand All @@ -17,8 +17,6 @@
<option name="redirectInputPath" value="" />
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Fix" run_configuration_type="CargoCommandRunConfiguration" />
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Format" run_configuration_type="CargoCommandRunConfiguration" />
<option name="CARGO.BUILD_TASK_PROVIDER" enabled="true" />
</method>
</configuration>
</component>
Loading
Loading