-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* working on keeping Index trait close to Index abc add coverage CI job initial index cmd impl add batch_insert method use needletail for fastx parsing fix finch feature lint clippy fix benchmarks comment out code that depends on unreleased crates... another ci check, can we publish it\? add windows, macos, beta and nightly tests tests move ocf to another repo needletail 0.3.2 update for finch 0.3.0 fix warnings initial search test oracle tests for search install sourmash for oracle tests keep nodegraph working on wasm32 use only hash_functions internally niffler instead of ocf test all features for coverage compatibility with sourmash-py SBT note about md5sum and filenames move tests into specific SBTs remove unwrap add note to nodegraph parsing update typed-builder fix nodegraph behavior to match khmer ignore roundtrip_sbt while figuring out heisenbug
- Loading branch information
Showing
41 changed files
with
2,118 additions
and
1,222 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
branch: true | ||
ignore-not-existing: true | ||
llvm: true | ||
filter: covered | ||
output-type: lcov | ||
output-file: ./lcov.info | ||
prefix-dir: /home/user/build/ |
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 |
---|---|---|
@@ -0,0 +1,231 @@ | ||
name: Rust checks | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
check: | ||
name: Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Run cargo check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: check | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build: [beta, stable, windows, macos] | ||
include: | ||
- build: macos | ||
os: macos-latest | ||
rust: stable | ||
- build: windows | ||
os: windows-latest | ||
rust: stable | ||
- build: beta | ||
os: ubuntu-latest | ||
rust: beta | ||
- build: stable | ||
os: ubuntu-latest | ||
rust: stable | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.rust }} | ||
override: true | ||
|
||
- name: Set up Python 3.8 | ||
if: matrix.os != 'windows-latest' | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install dependencies | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e . | ||
- name: Run tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-fail-fast | ||
|
||
test_all_features: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e . | ||
- name: Run tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-fail-fast --all --all-features | ||
|
||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: nightly | ||
override: true | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e . | ||
- name: Run tests | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --no-fail-fast --all --all-features | ||
env: | ||
'CARGO_INCREMENTAL': '0' | ||
'RUSTFLAGS': '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads' | ||
|
||
- name: Collect coverage and generate report with grcov | ||
uses: actions-rs/[email protected] | ||
id: coverage | ||
|
||
- name: Upload coverage to codecov | ||
uses: codecov/[email protected] | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: ${{ steps.coverage.outputs.report }} | ||
|
||
lints: | ||
name: Lints | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Run cargo fmt | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
|
||
- name: Run cargo clippy | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: clippy | ||
args: -- -D warnings | ||
|
||
wasm-pack: | ||
name: Check if wasm-pack builds a valid package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-unknown-unknown | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: --force wasm-pack | ||
- name: run wasm-pack | ||
run: wasm-pack build | ||
|
||
wasm32-wasi: | ||
name: Run tests under wasm32-wasi | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Install wasm32-wasi target | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: wasm32-wasi | ||
- name: Install wasmtime | ||
run: "curl https://wasmtime.dev/install.sh -sSf | bash" | ||
- name: Add wasmtime to PATH | ||
run: echo "::add-path::$HOME/.wasmtime/bin" | ||
- name: Install cargo-wasi command | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: --force cargo-wasi | ||
- name: Build code with cargo-wasi | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: wasi | ||
args: build | ||
- name: Run tests under wasm32-wasi | ||
uses: actions-rs/cargo@v1 | ||
continue-on-error: true ## TODO: remove this when tests work... | ||
with: | ||
command: wasi | ||
args: test | ||
|
||
publish: | ||
name: Publish (dry-run) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Make sure we can publish the crate | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: publish | ||
args: --dry-run |
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
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.