Commit Graph

193 Commits

Author SHA1 Message Date
Unai Martinez-Corral
8dbacda32c Pytest using pyproject.toml (#29)
# New Features
* Allow configuration of the unit test directory (default: `tests/unit`).
* Allow configuration of a `pyproject.toml` or `.coveragerc` file.
* Extract values from `pyproject.toml` or `.coveragerc`.

# Changes
* Jobs deriving from template job `CoverageCollection` need to specify their `.coveragerc` content and `pytest.ini` content in a `pyproject.toml` file or provide the job parameter `coverage_config` with the path to the `.coveragerc` file.

# Bug Fixes
*None*

-------------
* Closes #2.
2021-12-25 23:40:50 +01:00
Patrick Lehmann
78b225195f Updated README according to latest changes. 2021-12-24 21:05:04 +01:00
umarcor
1fbeef36d6 CoverageCollection: skip config file if empty 2021-12-24 16:37:45 +01:00
umarcor
9846c9e60c CoverageCollection: use 'pyproject.toml' by default 2021-12-24 16:31:47 +01:00
umarcor
b8564eb389 CoverageCollection: xmlFile defaults to './coverage.xml' 2021-12-24 16:24:55 +01:00
umarcor
62cd2d1d0f CoverageCollection: htmlDirectory defaults to 'htmlcov' 2021-12-24 16:22:14 +01:00
umarcor
9bd8004dfb CoverageCollection: pass output directory to coverage html 2021-12-24 15:59:23 +01:00
umarcor
925b44a8a8 CoverageCollection: fix variable name 2021-12-24 15:54:09 +01:00
Patrick Lehmann
9d8c1ecc05 Merge branch 'dev' into toml 2021-12-24 14:15:28 +01:00
umarcor
66c7b4b619 ExamplePipeline/ArtifactCleanup: needs PublishTestResults instead of UnitTesting 2021-12-24 14:11:37 +01:00
Patrick Lehmann
b399aa8f93 Parameters: mark Python 3.6 black, update others, warn about unsupported versions 2021-12-24 14:00:34 +01:00
umarcor
dcd0a4b617 Parameters: mark Python 3.6 black, update others, warn about unsupported versions 2021-12-24 13:52:30 +01:00
Patrick Lehmann
d7c765ba79 Fixed how to access complex nested key-value pairs. 2021-12-24 13:04:31 +01:00
Patrick Lehmann
fa10ed076c Install dependency tomli before script execution. 2021-12-24 12:56:03 +01:00
Patrick Lehmann
9dfafd588e Changed scripting from bash to Python. Also use .coveragerc as fallback. 2021-12-24 12:55:59 +01:00
Patrick Lehmann
09f7504de4 Fixed path to project root. 2021-12-24 12:55:56 +01:00
Patrick Lehmann
6ad23eabf5 Extract information from TOML file. 2021-12-24 12:55:50 +01:00
Patrick Lehmann
bb855d572d Pytest using pyproject.toml. 2021-12-24 12:54:14 +01:00
umarcor
250cceb80d releaser: update README.md and DEVELOPMENT.md 2021-12-21 02:05:21 +01:00
umarcor
615aafc0b4 releaser: add DEVELOPMENT.md 2021-12-21 02:05:21 +01:00
umarcor
1f3d12ef95 README: add 'Container Step' to Context; add References 2021-12-21 01:39:02 +01:00
Unai Martinez-Corral
608670c6b9 v0.2.3
# Bug Fixes
*  releaser/composite: quote path to releaser.py (#27)
v0.2.3
2021-12-21 01:02:13 +01:00
Unai Martinez-Corral
9cee3342e3 releaser/composite: quote path to releaser.py (#27) 2021-12-21 00:45:30 +01:00
jeremyd2019
aec2613cd1 releaser/composite: quote path to releaser.py
Fixes #26
2021-12-20 14:45:07 -08:00
Patrick Lehmann
7c406d96e7 v0.2.2 v0.2.2 2021-12-20 08:53:56 +01:00
umarcor
459faf880a releaser: use GitHub CLI by default; remove option 'use-gh-cli' 2021-12-20 07:28:13 +01:00
umarcor
e832625624 releaser: refactor 2021-12-20 07:28:13 +01:00
umarcor
ee02a39a5e releaser: build and use image ghcr.io/pytooling/releaser 2021-12-20 07:28:13 +01:00
umarcor
52491e6bcc releaser: add option 'use-gh-cli' 2021-12-20 06:41:40 +01:00
umarcor
4177a535f1 releaser: refactor; add func GetOrCreateRelease 2021-12-20 06:41:40 +01:00
umarcor
548437b824 releaser: refactor; reorder CheckRefSemVer and GetRepositoryHandle 2021-12-20 06:41:39 +01:00
umarcor
596d0d774f releaser: refactor; add func GetRepositoryHandler 2021-12-20 06:41:39 +01:00
umarcor
877928ba4a releaser: refactor; add func CheckRefSemVer 2021-12-20 06:41:39 +01:00
umarcor
a06d90f456 releaser: refactor; add func UploadArtifacts 2021-12-20 06:41:33 +01:00
umarcor
dcaff1e5a1 releaser: refactor; add func GetReleaseHandler 2021-12-20 06:41:24 +01:00
umarcor
4d666520a0 releaser: refactor; add func GetGitHubAPIHandler 2021-12-20 06:41:19 +01:00
umarcor
cea369d703 releaser: refactor; add func GetListOfArtifacts 2021-12-20 06:41:13 +01:00
umarcor
08a19429d4 releaser: refactor; add func UpdateReference 2021-12-20 06:41:08 +01:00
umarcor
0cf056b6fe Revert "Added 'allow_failure' option for StaticTypeCheck job."
This reverts commit 6d94f6f471.
v0.2.1
2021-12-16 07:39:51 +01:00
Patrick Lehmann
72b869a6fc Package: support either 'build' or 'setuptools' v0.2.0 2021-12-16 07:16:09 +01:00
umarcor
9255fdf781 Package: update description of option 'requirements 2021-12-16 06:59:16 +01:00
umarcor
5b2cd8f077 Package: support either 'build' or 'setuptools' 2021-12-16 06:50:03 +01:00
umarcor
85644b3456 ExamplePipeline: add option 'allow_failure' to StaticTypeCheck 2021-12-11 20:03:07 +01:00
Patrick Lehmann
6ff98fbb50 Added 'allow_failure' option for StaticTypeCheck job. 2021-12-11 20:01:33 +01:00
Patrick Lehmann
6d94f6f471 Added 'allow_failure' option for StaticTypeCheck job. 2021-12-11 16:59:02 +01:00
Unai Martinez-Corral
f736ec2e07 Add licenses (#11 ) v0.1.0 2021-12-07 19:46:30 +00:00
Patrick Lehmann
e33a3ce242 Removed unused exception variable. 2021-12-07 20:41:22 +01:00
Patrick Lehmann
59beccb198 Adjusted header blocks and added header blocks to files without license header. 2021-12-07 20:40:56 +01:00
Patrick Lehmann
bb26a274f3 Changed copyright holder. Reformatted list of authors. 2021-12-07 20:28:49 +01:00
Patrick Lehmann
6562cb4cd6 Added License and contributors to README. 2021-12-07 20:28:49 +01:00