-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1006 Bytes
/
build.yml
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
32
33
34
35
36
37
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-cov pytest-timeout
pip install tqdm matplotlib numpy scipy
sudo apt-get install -y libmpfr-dev libgmp-dev
- name: Lint with flake8
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=15 --exclude=./paper/*,./tests/* --max-line-length=127 --statistics
- name: Compile and Build
run: |
make
make clean
- name: Test
run: pytest --cov --cov-branch --cov-report term-missing --timeout=600