From bda9c399941707094807aa0f72003b5e46c5f1b0 Mon Sep 17 00:00:00 2001 From: Chelsea Lin Date: Fri, 2 Aug 2024 22:19:37 +0000 Subject: [PATCH 1/3] chore: integrate compliance tests into code coverage reporting --- .github/workflows/unittest.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 89f021e..1392b76 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -58,6 +58,33 @@ jobs: name: coverage-artifact-prerelease-${{ matrix.python }} path: .coverage-prerelease-${{ matrix.python }} + compliance: + runs-on: ubuntu-latest + strategy: + matrix: + python: ['3.12'] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python }} + - name: Install nox + run: | + python -m pip install --upgrade setuptools pip wheel + python -m pip install nox + - name: Run unit tests + env: + COVERAGE_FILE: .coverage-${{ matrix.python }} + run: | + nox -s unit-${{ matrix.python }} + - name: Upload coverage results + uses: actions/upload-artifact@v4 + with: + name: coverage-artifact-${{ matrix.python }} + path: .coverage-${{ matrix.python }} + cover: runs-on: ubuntu-latest needs: From 9b01152732ac1bc82e41c63e0bda8a8e2a1876b2 Mon Sep 17 00:00:00 2001 From: Chelsea Lin Date: Fri, 2 Aug 2024 22:21:21 +0000 Subject: [PATCH 2/3] fixing --- .github/workflows/unittest.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 1392b76..8d5b7b9 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -74,11 +74,11 @@ jobs: run: | python -m pip install --upgrade setuptools pip wheel python -m pip install nox - - name: Run unit tests + - name: Run compliance tests env: COVERAGE_FILE: .coverage-${{ matrix.python }} run: | - nox -s unit-${{ matrix.python }} + nox -s compliance-${{ matrix.python }} - name: Upload coverage results uses: actions/upload-artifact@v4 with: @@ -90,6 +90,7 @@ jobs: needs: - unit - unit-prerelease + - compliance steps: - name: Checkout uses: actions/checkout@v4 From d56bfb8f057f4f285ec8c495d8c5dda705855827 Mon Sep 17 00:00:00 2001 From: Chelsea Lin Date: Fri, 2 Aug 2024 22:24:39 +0000 Subject: [PATCH 3/3] fixing --- .github/workflows/unittest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unittest.yml b/.github/workflows/unittest.yml index 8d5b7b9..81ff447 100644 --- a/.github/workflows/unittest.yml +++ b/.github/workflows/unittest.yml @@ -82,8 +82,8 @@ jobs: - name: Upload coverage results uses: actions/upload-artifact@v4 with: - name: coverage-artifact-${{ matrix.python }} - path: .coverage-${{ matrix.python }} + name: coverage-artifact-compliance-${{ matrix.python }} + path: .coverage-compliance-${{ matrix.python }} cover: runs-on: ubuntu-latest