Lint on push #7
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: Tests | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download CSPICE | |
run: | |
wget https://naif.jpl.nasa.gov/pub/naif/toolkit/C/PC_Linux_GCC_64bit/packages/cspice.tar.Z && | |
gzip -d cspice.tar.Z && | |
tar xf cspice.tar && | |
mv cspice/lib/cspice.a cspice/lib/libcspice.a | |
- name: Set CSPICE_DIR | |
run: | |
echo "CSPICE_DIR=$(readlink -f cspice)" >> $GITHUB_ENV | |
- name: Build | |
run: cargo build --release --verbose | |
- name: Lint | |
run: cargo clippy | |
- name: Run unit tests | |
run: cargo test --release --verbose -- --nocapture | |
- name: Test Example | |
run: ./example.sh |