@@ -3,49 +3,43 @@ name: ci
3
3
on :
4
4
push :
5
5
branches :
6
- - main
6
+ - main
7
7
pull_request :
8
8
branches :
9
- - main
9
+ - main
10
10
11
11
jobs :
12
12
lint :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/setup-python@v2
16
- with :
17
- python-version : " 3.x"
18
- - uses : actions/checkout@v2
19
- - name : Lint with flake8
20
- run : |
21
- pip install flake8
22
- flake8 .
23
- - name : Lint with black
24
- run : |
25
- pip install black
26
- black --check .
15
+ - name : Check out repo
16
+ uses : actions/checkout@v2
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v2
19
+ - name : Run pre-commit
20
+ uses : pre-commit/action@v2.0.3
27
21
28
22
build :
29
23
runs-on : ubuntu-20.04
30
24
steps :
31
- - uses : actions/setup-python@v2
32
- with :
33
- python-version : " 3.x"
34
- - uses : actions/checkout@v2
35
- with :
36
- lfs : true
37
- - name : Install CGAL 5
38
- run : |
39
- # Leave that here in case we ever need a PPA again
40
- # sudo apt-get install -y software-properties-common
41
- # sudo apt-add-repository -y ppa:nschloe/cgal-backports
42
- # sudo apt update
43
- sudo apt install -y libcgal-dev
44
- - name : Install other dependencies
45
- run : |
46
- sudo apt-get install -y libeigen3-dev python3-pip clang
47
- - name : Test with tox
48
- run : |
49
- pip install tox
50
- CC="clang" tox -- --cov pygalmesh --cov-report xml --cov-report term
51
- - uses : codecov/codecov-action@v1
25
+ - uses : actions/setup-python@v2
26
+ with :
27
+ python-version : " 3.x"
28
+ - uses : actions/checkout@v2
29
+ with :
30
+ lfs : true
31
+ - name : Install CGAL 5
32
+ run : |
33
+ # Leave that here in case we ever need a PPA again
34
+ # sudo apt-get install -y software-properties-common
35
+ # sudo apt-add-repository -y ppa:nschloe/cgal-backports
36
+ # sudo apt update
37
+ sudo apt install -y libcgal-dev
38
+ - name : Install other dependencies
39
+ run : |
40
+ sudo apt-get install -y libeigen3-dev python3-pip clang
41
+ - name : Test with tox
42
+ run : |
43
+ pip install tox
44
+ CC="clang" tox -- --cov pygalmesh --cov-report xml --cov-report term
45
+ - uses : codecov/codecov-action@v1
0 commit comments