Skip to content

Commit bf55be1

Browse files
authored
Merge pull request #158 from nschloe/smaller-test-files
Smaller test files
2 parents c641fb9 + 86878e1 commit bf55be1

27 files changed

+568
-522
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,43 @@ name: ci
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77
pull_request:
88
branches:
9-
- main
9+
- main
1010

1111
jobs:
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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ README.rst
77
do-configure.sh
88
.pytest_cache/
99
*.egg-info/
10+
.tox/

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/PyCQA/isort
3+
rev: 5.9.3
4+
hooks:
5+
- id: isort
6+
7+
- repo: https://github.com/psf/black
8+
rev: 21.9b0
9+
hooks:
10+
- id: black
11+
language_version: python3
12+
13+
- repo: https://github.com/PyCQA/flake8
14+
rev: 3.9.2
15+
hooks:
16+
- id: flake8

0 commit comments

Comments
 (0)