Create workflows for unit testing

This commit is contained in:
Jean-Michel Picod
2020-02-28 16:03:04 +01:00
parent 68f9eb6b09
commit cc35ce5067
4 changed files with 158 additions and 0 deletions

38
.github/workflows/cbor_test.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
---
name: CBOR tests
on:
push:
paths:
- 'libraries/cbor/**/*'
pull_request:
types: [opened, synchronize, reopened]
jobs:
cbor_test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: thumbv7em-none-eabi
override: true
- uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Python dependencies
run: python -m pip install --upgrade pip setuptools wheel
- name: Set up OpenSK
run: ./setup.sh
- name: Unit testing of CBOR library (release mode)
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path libraries/cbor/Cargo.toml --release --features std
- name: Unit testing of CBOR library (debug mode)
uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path libraries/cbor/Cargo.toml --features std