Skip to content

Build and run Rust tests #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@ jobs:
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}

- name: Install Rust macOS
if: contains( matrix.os, 'macos')
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y

- name: Install GFortran macOS
if: contains( matrix.os, 'macos')
run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true

- name: Build
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo build --verbose

- name: Run tests
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo test --verbose

# TODO: integrate these with `cargo test` above
- name: Run manual tests
run: |
export PATH="$HOME/.cargo/bin:$PATH"
cargo run -- --help
./run_tests.sh