Skip to content

Commit

Permalink
Merge pull request #158 from nschloe/smaller-test-files
Browse files Browse the repository at this point in the history
Smaller test files
  • Loading branch information
nschloe authored Sep 30, 2021
2 parents c641fb9 + 86878e1 commit bf55be1
Show file tree
Hide file tree
Showing 27 changed files with 568 additions and 522 deletions.
64 changes: 29 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ README.rst
do-configure.sh
.pytest_cache/
*.egg-info/
.tox/
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
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
Loading

0 comments on commit bf55be1

Please sign in to comment.