From 7cbfb9d62b3f7c3da99d6c029730a756044fd06c Mon Sep 17 00:00:00 2001 From: Sushain Cherivirala Date: Sat, 13 Mar 2021 11:25:22 -0800 Subject: [PATCH] Mostly fix coverage workflow & other minor tweaks (#82) * Bump timeout for coverage runs * Switch submodule to apertium org * Bump reset duration to 10m in future * Tweak some names * Add --debug * Try downgrading * Exclude rlx * Why did I ever enable this??? --- .github/workflows/check.yml | 2 +- .gitmodules | 2 +- .rustfmt.toml | 2 -- src/stats/lexd.rs | 8 ++++---- src/tests/common.rs | 2 +- src/tests/get.rs | 5 +++++ 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c5458e9..37a8515 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -92,7 +92,7 @@ jobs: uses: actions-rs/tarpaulin@v0.1 with: version: "0.16.0" - args: --out Lcov + args: --out Lcov --timeout 120 --exclude-files src/stats/tree-sitter-apertium/* - name: Upload coverage uses: coverallsapp/github-action@master with: diff --git a/.gitmodules b/.gitmodules index e440dab..c76f08e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "src/stats/tree-sitter-apertium"] path = src/stats/tree-sitter-apertium - url = git@github.com:mr-martian/tree-sitter-apertium.git + url = https://github.com/apertium/tree-sitter-apertium.git diff --git a/.rustfmt.toml b/.rustfmt.toml index 97487eb..8ac293e 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,8 +1,6 @@ condense_wildcard_suffixes = true match_block_trailing_comma = true imports_granularity = "Crate" -report_fixme = "Unnumbered" -report_todo = "Unnumbered" unstable_features = true use_field_init_shorthand = true use_try_shorthand = true diff --git a/src/stats/lexd.rs b/src/stats/lexd.rs index f48102f..53dd2c7 100644 --- a/src/stats/lexd.rs +++ b/src/stats/lexd.rs @@ -27,12 +27,12 @@ pub fn get_stats(_logger: &Logger, body: &str) -> Result Result