Skip to content

Commit

Permalink
pytest failing on ctapipe tools in CI (#117)
Browse files Browse the repository at this point in the history
* Activate the `pytest-xdist` addon for `pytest` in CI.

* Fix typo

---------

Co-authored-by: Jean-Philippe Lenain <[email protected]>
  • Loading branch information
jlenain and Jean-Philippe Lenain committed Mar 22, 2024
1 parent 2208321 commit 88ef8c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,13 @@ jobs:
echo "Installing additional pip packages"
# we install ctapipe using pip to be able to select any commit, e.g. the current main
pip install \
"git+https://github.com/cta-observatory/ctapipe@$CTAPIPE_VERSION" \
pytest-cov
"git+https://github.com/cta-observatory/ctapipe@$CTAPIPE_VERSION"
echo "pip install -e ."
pip install -e .
pip install -e .[test]
- name: Tests
run: |
pytest --cov=nectarchain --cov-report=xml
pytest -n auto --dist loadscope --cov=nectarchain --cov-report=xml
- uses: codecov/codecov-action@v3
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dynamic = ["version"]
test = [
"pytest",
"pytest-cov",
"pytest-xdist",
]
dev = [
"setuptools_scm",
Expand Down

0 comments on commit 88ef8c2

Please sign in to comment.