Merge branch 'main' of github.com:earth-metabolome-initiative/emi-mon… #28
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: Sirius | |
on: | |
push: | |
paths: | |
- "bindings/sirius/**" | |
branches: ["main"] | |
pull_request: | |
paths: | |
- "bindings/sirius/**" | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
sirius: | |
runs-on: ubuntu-latest | |
environment: Sirius | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Retrieve Sirius install script | |
run: | | |
wget https://raw.githubusercontent.com/enpkg/enpkg_full/emikg-adapt/src/install_sirius.sh | |
chmod +x install_sirius.sh | |
- name: Install Sirius | |
run: | | |
bash ./install_sirius.sh | |
chmod +x ./sirius/bin | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
override: true | |
- name: Run tests | |
env: | |
SIRIUS_USERNAME: ${{secrets.SIRIUS_USERNAME}} | |
SIRIUS_PASSWORD: ${{secrets.SIRIUS_PASSWORD}} | |
run: | | |
export SIRIUS_PATH=${{vars.SIRIUS_PATH}} | |
cargo test --test test_sirius | |