Skip to content

Fix citation record #321

Fix citation record

Fix citation record #321

Workflow file for this run

## Based on https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
##
## While our "example" application has the platform-specific code,
## for simplicity we are compiling and testing everything on the Ubuntu environment only.
## For multi-OS testing see the `cross.yml` workflow.
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.6"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install cython==0.29.15 numpy
pip install -r scripts/requirements.txt
- name: Test Python
run: python -m pytest tests
- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check