From d74f0a7137fac45bd0022de117fe3cd90330b7be Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Wed, 4 Sep 2024 10:55:04 -0500 Subject: [PATCH] ci: enable neutron-understack pytest fully Trigger these jobs on any change in the python/ path. De-dupped the rules to avoid bad copy and paste in the paths, specifically around the coverage which had checked the ironic code coverage instead. --- .github/workflows/code-test.yaml | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/code-test.yaml b/.github/workflows/code-test.yaml index 37f48879..706662cb 100644 --- a/.github/workflows/code-test.yaml +++ b/.github/workflows/code-test.yaml @@ -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/coverage@v3.2 - with: - coverageFile: python/ironic-understack/coverage.xml - token: ${{ secrets.GITHUB_TOKEN }}