Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- '*.LTS'
pull_request:
branches:
- main
- '*.LTS'

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- '*.LTS'
pull_request:
branches:
- main
- '*.LTS'

jobs:
coverage:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- '*.LTS'
tags:
- 'v*'
pull_request_review:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ironpython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ on:
push:
branches:
- main
- '*.LTS'
pull_request:
branches:
- main
- '*.LTS'

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- master
- '*.LTS'

jobs:
build:
Expand Down
17 changes: 8 additions & 9 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
from pathlib import Path
import math

import numpy
import pytest

import compas
from compas.geometry import allclose


def pytest_ignore_collect(path):
if "rhino" in str(path):
return True

if "blender" in str(path):
def pytest_ignore_collect(collection_path: Path, config):
# Skip anything under rhino/blender/ghpython, or files ending with _cli.py
parts_lower = {p.lower() for p in collection_path.parts}
if {"rhino", "blender", "ghpython"} & parts_lower:
return True

if "ghpython" in str(path):
if collection_path.name.endswith("_cli.py"):
return True

if str(path).endswith("_cli.py"):
return True
# return None -> don't ignore
return None


@pytest.fixture(autouse=True)
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ def setup(app):
"image_dark": "_static/compas_icon_white.png",
"text": "COMPAS docs",
},
"announcement": "This is the documentation of the first stable release of COMPAS 2. If you have feedback, please give it here: <a href='https://github.com/compas-dev/compas/issues'>COMPAS issue tracker</a>.",
"navigation_depth": 2,
}

Expand Down
Loading