testing what happens if doc string in rust file changed #3
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
name: rust-tests | ||
on: | ||
push: | ||
branches: [fastsim-2, fastsim-3] | ||
pull_request: | ||
workflow_dispatch: | ||
workflow_call: | ||
jobs: | ||
test: | ||
# might not be needed | ||
if: github.repository == 'nrel/fastsim' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
if: contains(github.event.pull_request.changed_files, 'rust/') | ||
- name: install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
- name: Rust unit tests | ||
run: | | ||
cd rust/ && cargo test |