-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 857 Bytes
/
code.yml
File metadata and controls
31 lines (26 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Code CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt -y update
sudo apt install cmake
sudo apt install libzmq3-dev
- name: Build pmacFilterControl
run: |
mkdir ${GITHUB_WORKSPACE}/prefix
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/prefix
make install
- name: Test pmacFilterControl
run: |
python3 -m venv venv && source venv/bin/activate && pip install --upgrade pip
pip install .[dev]
PMAC_FILTER_CONTROL=${GITHUB_WORKSPACE}/prefix/bin/pmacFilterControl pytest -v tests/test_pmac_filter_control.py