From 847da8da7eba9ea3551880ca86b5979b4118c650 Mon Sep 17 00:00:00 2001 From: Luiz Irber Date: Mon, 25 Nov 2019 05:53:03 +0000 Subject: [PATCH] add windows, macos, beta and nightly tests --- .github/workflows/rust.yml | 41 ++++++++++++++++++++++++++++++++++++-- .gitignore | 2 ++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 98b6cd1dc3..527bd2b7bb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,7 +1,11 @@ -on: [pull_request] - name: Rust checks +on: + push: + branches: [master] + pull_request: + branches: [master] + jobs: check: name: Check @@ -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: diff --git a/.gitignore b/.gitignore index 2464418ec6..33fa2a5bef 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ sourmash/_lowlevel*.py .env Pipfile Pipfile.lock +ocf/target/ +target/