48 lines (45 loc) · 1.17 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
name: ci
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
with:
python-version: "3.x"
- uses: actions/checkout@v2
- name: Lint with flake8
run: |
pip install flake8
flake8 .
- name: Lint with black
run: |
pip install black
black --check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v1
with:
python-version: "3.x"
- uses: actions/checkout@v2
with:
lfs: true
- name: Install dependencies
run: |
sudo apt-get install -y libcgal-dev libeigen3-dev python3-pip clang
- name: install cgal-5 from ppa
run: |
sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:nschloe/cgal-backports
sudo apt update
sudo apt install -y libcgal-dev
- name: Install package
run: |
CC="clang" pip install .[all]
pip install pytest pytest-cov
- name: Test with pytest
run: |
cd test && pytest --cov pygalmesh
# - name: Submit to codecov
# run: bash <(curl -s https://codecov.io/bash)