-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: Move pytest options into pyproject.toml * ci: Update CI to use modern actions and Python commands * Add workflow dispatch option to run on demand. * Test against Python 3.8 which is the version of Python the ROOT binary was compiled against given the output of `root-config --python-version`. * Update all GitHub Actions. * Avoid deprecated direct calls to `python setup.py` and use local pip installs. * Use 'python -m pytest' to add current working directory to sys.path as src/ dir layout not used. - c.f. https://docs.pytest.org/en/7.1.x/explanation/pythonpath.html * Run on push events only if to master to let coverage from PRs report properly. * Use Codecov for reporting coverage. - Update badge in README to use Codecov - Add Codecov config file * build: Remove test=pytest alias as invoking setup.py directly is deprecate * fixup: Remove 'contrib' typo from copy-and-paste
- Loading branch information
1 parent
4a65a17
commit 764d939
Showing
5 changed files
with
115 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
threshold: 0.2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[tool.pytest.ini_options] | ||
minversion = "6.0" | ||
xfail_strict = true | ||
addopts = [ | ||
"-ra", | ||
"--cov=hepdata_lib", | ||
"--cov-branch", | ||
"--showlocals", | ||
"--strict-markers", | ||
"--strict-config", | ||
"--cov-report=term-missing", | ||
"--cov-report=xml", | ||
"--cov-report=html", | ||
] | ||
log_cli_level = "info" | ||
testpaths = "tests" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters