Skip to content

Commit d43c026

Browse files
authored
Update ci.yml
reconfigure
1 parent 81542cb commit d43c026

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: CI
22

33
on:
44
push:
5+
branches: ["main"]
56
pull_request:
7+
branches: ["main"]
68

79
jobs:
810
build-and-test:
@@ -21,23 +23,29 @@ jobs:
2123
with:
2224
python-version: ${{ matrix.python-version }}
2325

24-
- name: Upgrade pip
25-
run: python -m pip install --upgrade pip
26+
- name: Upgrade pip & install build tools
27+
run: |
28+
python -m pip install --upgrade pip setuptools wheel
2629
2730
- name: Install package + dev dependencies
28-
run: pip install -e .[dev]
31+
run: |
32+
pip install -e .[dev]
2933
3034
- name: Lint (flake8)
31-
run: flake8 src tests
35+
run: |
36+
flake8 src tests
3237
3338
- name: Check formatting (black)
34-
run: black --check .
39+
run: |
40+
black --check src tests
3541
3642
- name: Type check (mypy)
37-
run: mypy src
43+
run: |
44+
mypy src
3845
39-
- name: Run tests with coverage
40-
run: pytest --cov=planet_overlap --cov-report=term-missing
46+
- name: Run tests
47+
run: |
48+
pytest --strict-markers --disable-warnings --cov=planet_overlap --cov-report=term-missing
4149
4250
- name: Build distribution
4351
run: |

0 commit comments

Comments
 (0)