Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI #149

Merged
merged 17 commits into from
Jan 20, 2024
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
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Maintain dependencies for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: 3.9

- name: pyflakes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 22.6.0
hooks:
- id: black-jupyter
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "2"
version: 2

build:
os: "ubuntu-22.04"
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ Developers should follow the development install instructions found in the
:target: https://pypi.org/project/magic-cta-pipe
:alt: magic-cta-pipe PyPI Status

.. |Documentation Status| image:: https://img.shields.io/readthedocs/magic-cta-pipe/latest.svg?logo=read%20the%20docs&logoColor=white&label=Docs&version=stable
:target: https://magic-cta-pipe.readthedocs.io/en/latest/?badge=stable
.. |Documentation Status| image:: https://readthedocs.org/projects/magic-cta-pipe/badge/?version=latest&style=flat
:target: https://magic-cta-pipe.readthedocs.io/en/latest/
:alt: magic-cta-pipe documentation Status

.. |Pre-Commit| image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ exclude = '''
)/
'''

[tool.pytest.ini_options]
minversion = "7"
testpaths = ["magicctapipe"]
log_cli_level = "INFO"
xfail_strict = true

# print summar of failed tests, force errors if settings are misspelled
addopts = ["-ra", "--strict-config", "--strict-markers"]

filterwarnings = [
"error::astropy.utils.exceptions.AstropyDeprecationWarning",
]
norecursedirs = [
".git",
"_build",
"auto_examples",
]

[tool.numpydoc_validation]
checks = [
"all",
Expand Down