@@ -3,49 +3,43 @@ name: ci
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
88 branches :
9- - main
9+ - main
1010
1111jobs :
1212 lint :
1313 runs-on : ubuntu-latest
1414 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
2721
2822 build :
2923 runs-on : ubuntu-20.04
3024 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