Skip to content

Commit

Permalink
Exclude unneeded directories from test collection
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Feb 26, 2024
1 parent 6d20d62 commit d63fc76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
sudo apt-get install -y libopenblas-dev
python -m nox -s pybamm-requires
python -m pip install .[all]
rm -rf pybind11/
cd ..
- name: Run coverage tests for Ubuntu with Python 3.11 and generate report
Expand Down
3 changes: 3 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
plotly.io.renderers.default = None
matplotlib.use("Template")

# Ignore the pybamm/ folder and any subdirectories from test discovery
collect_ignore = ["pybamm/"]


def pytest_addoption(parser):
parser.addoption(
Expand Down

0 comments on commit d63fc76

Please sign in to comment.