-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contrib provider ce-oem GitHub workflows (Infra) (#938)
* Remove old ce-oem workflow This workflow comes from the original Git repository and is no longer needed. * Add workflow for the ce-oem provider This workflow is adapted from existing workflows used for the generic providers. * Update contrib ce-oem tox config - Point to the correct version of Python using {envpython} - Remove the "develop installation" step for the ce-oem provider - Convert the test step into a test coverage one to generate an XML report to be used later by Codecov * Point to the right directory for generic providers * Install ce-oem provider prior to run validation on it * Add codecov config for ce-oem contrib provider Following Codecov documentation on flags[1], use the `contrib-provider-ce-oem` flag defined in the GitHub workflow[2] to mark Codecov status checks as non-blocking[3]. [1] https://docs.codecov.com/docs/flags [2] .github/workflows/tox-contrib-provider-ce-oem.yaml [3] https://docs.codecov.com/docs/common-recipe-list#set-non-blocking-status-checks * Fix tox configuration for ce-oem provider * Add coverage requirement to ce-oem tox config * Add coverage config to ce-oem provider * Update codecov config to make project status non-blocking for ce-oem provider * Change job id and add a name to it for easier reference
- Loading branch information
Showing
5 changed files
with
94 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test provider-ce-oem (from contrib area) with tox | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- contrib/checkbox-provider-ce-oem/** | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- contrib/checkbox-provider-ce-oem/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
tox_test_contrib_ce_oem_provider: | ||
name: Test ce-oem provider (from contrib area) with tox | ||
defaults: | ||
run: | ||
working-directory: contrib/checkbox-provider-ce-oem | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
python: ["3.5", "3.6", "3.8", "3.10"] | ||
include: | ||
- python: "3.5" | ||
tox_env_name: "py35" | ||
- python: "3.6" | ||
tox_env_name: "py36" | ||
- python: "3.8" | ||
tox_env_name: "py38" | ||
- python: "3.10" | ||
tox_env_name: "py310" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Run tox | ||
run: tox -e${{ matrix.tox_env_name }} | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: contrib-provider-ce-oem |
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
[run] | ||
branch = True | ||
source = bin,manage | ||
omit = | ||
tests/* | ||
|
||
[report] | ||
exclude_lines = | ||
@abc.abstractmethod | ||
@abc.abstractproperty | ||
@abstractmethod | ||
@abstractproperty | ||
@public | ||
pragma: no cover | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
show_missing = True |
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