-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from nschloe/smaller-test-files
Smaller test files
- Loading branch information
Showing
27 changed files
with
568 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,49 +3,43 @@ name: ci | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
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 . | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
- name: Install CGAL 5 | ||
run: | | ||
# Leave that here in case we ever need a PPA again | ||
# 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 other dependencies | ||
run: | | ||
sudo apt-get install -y libeigen3-dev python3-pip clang | ||
- name: Test with tox | ||
run: | | ||
pip install tox | ||
CC="clang" tox -- --cov pygalmesh --cov-report xml --cov-report term | ||
- uses: codecov/codecov-action@v1 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
- uses: actions/checkout@v2 | ||
with: | ||
lfs: true | ||
- name: Install CGAL 5 | ||
run: | | ||
# Leave that here in case we ever need a PPA again | ||
# 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 other dependencies | ||
run: | | ||
sudo apt-get install -y libeigen3-dev python3-pip clang | ||
- name: Test with tox | ||
run: | | ||
pip install tox | ||
CC="clang" tox -- --cov pygalmesh --cov-report xml --cov-report term | ||
- uses: codecov/codecov-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ README.rst | |
do-configure.sh | ||
.pytest_cache/ | ||
*.egg-info/ | ||
.tox/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.9.3 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 21.9b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 |
Oops, something went wrong.