Skip to content

Commit

Permalink
add windows, macos, beta and nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Nov 25, 2019
1 parent cd704e6 commit 577517a
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
on: [pull_request]

name: Rust checks

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
check:
name: Check
Expand All @@ -22,6 +26,39 @@ jobs:
with:
command: check

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [beta, nightly, 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: nightly
os: ubuntu-latest
rust: nightly
steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true

- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
args: --no-fail-fast

coverage:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ sourmash/_lowlevel*.py
.env
Pipfile
Pipfile.lock
ocf/target/
target/
2 changes: 1 addition & 1 deletion src/bin/smrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl Query<Signature> {
}

fn name(&self) -> String {
self.data.name().clone()
self.data.name()
}
}

Expand Down

0 comments on commit 577517a

Please sign in to comment.