Skip to content

Commit

Permalink
🤖 add CI-CD
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Nov 5, 2022
1 parent ba60c71 commit f7e3097
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
name: argminmax test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
rust: ['stable', 'beta', 'nightly']

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
components: clippy, rustfmt

- name: Rust toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
cargo fmt --version
- name: Linting
run: |
cargo fmt -- --check
cargo clippy --features half -- -D warnings
- name: Cache Dependencies
uses: Swatinem/rust-cache@v1

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
args: '--features half -- --test-threads 1'

- name: Upload to codecov.io
uses: codecov/codecov-action@v3

0 comments on commit f7e3097

Please # to comment.