-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from rackerlabs/neutron-pytest
ci: enable code coverage reporting on neutron-understack
- Loading branch information
Showing
1 changed file
with
3 additions
and
27 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 |
---|---|---|
|
@@ -5,15 +5,11 @@ on: | |
branches: | ||
- main | ||
paths: | ||
- "python/ironic-understack/**" | ||
- "python/neutron-understack/**" | ||
- "python/understack-workflows/**" | ||
- "python/**" | ||
- ".github/workflows/code-test.yaml" | ||
pull_request_target: | ||
paths: | ||
- "python/ironic-understack/**" | ||
- "python/neutron-understack/**" | ||
- "python/understack-workflows/**" | ||
- "python/**" | ||
- ".github/workflows/code-test.yaml" | ||
workflow_dispatch: | ||
|
||
|
@@ -34,6 +30,7 @@ jobs: | |
project: | ||
- understack-workflows | ||
- ironic-understack | ||
- neutron-understack | ||
|
||
defaults: | ||
run: | ||
|
@@ -53,24 +50,3 @@ jobs: | |
with: | ||
coverageFile: python/${{ matrix.project }}/coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
neutron-understack: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: ./python/neutron-understack | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: pipx install poetry==1.7.1 && poetry self add 'poetry-dynamic-versioning[plugin]' | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version-file: python/neutron-understack/pyproject.toml | ||
cache: "poetry" | ||
- run: poetry install --sync --with test | ||
- run: poetry build | ||
- run: "poetry run pytest --cov-report xml:coverage.xml" | ||
- uses: orgoro/[email protected] | ||
with: | ||
coverageFile: python/ironic-understack/coverage.xml | ||
token: ${{ secrets.GITHUB_TOKEN }} |