venv for Python setup #1552
Workflow file for this run
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: CBOR tests | |
on: | |
push: | |
paths: | |
- 'libraries/cbor/**' | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
cbor_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- name: Install Rust toolchain | |
run: rustup show | |
- 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 | |
- name: Unit testing of CBOR library (debug mode) | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path libraries/cbor/Cargo.toml |