From a1a9fcec22691ae2b57c85f62d294158d0ff051e Mon Sep 17 00:00:00 2001 From: harryswift01 Date: Wed, 3 Jun 2026 09:52:39 +0100 Subject: [PATCH 1/3] ci(workflows): reintroduce coveralls step on push to main --- .github/workflows/pr.yaml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 02cbeba..13da17a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -2,6 +2,13 @@ name: Pull Request CI on: pull_request: + push: + branches: [main] + +permissions: + contents: read + checks: write + pull-requests: write concurrency: group: pr-${{ github.ref }} @@ -10,6 +17,7 @@ concurrency: jobs: unit: name: Unit + if: github.event_name == 'pull_request' runs-on: ${{ matrix.os }} timeout-minutes: 25 strategy: @@ -37,6 +45,7 @@ jobs: discover-systems: name: Discover regression systems + if: github.event_name == 'pull_request' runs-on: ubuntu-24.04 outputs: systems: ${{ steps.set-systems.outputs.systems }} @@ -63,6 +72,7 @@ jobs: regression-quick: name: Regression (fast) • ${{ matrix.system }} + if: github.event_name == 'pull_request' needs: [unit, discover-systems] runs-on: ubuntu-24.04 timeout-minutes: 35 @@ -86,7 +96,7 @@ jobs: python -m pip install --upgrade pip python -m pip install -e .[testing] - - name: Run fast regression tests (per system) + - name: Run fast regression tests run: | python -m pytest tests/regression \ -m "not slow" \ @@ -96,7 +106,7 @@ jobs: -vv \ --durations=20 - - name: Upload artifacts (failure) + - name: Upload artifacts on failure if: failure() uses: actions/upload-artifact@v4 with: @@ -107,6 +117,7 @@ jobs: docs: name: Docs + if: github.event_name == 'pull_request' needs: unit runs-on: ubuntu-24.04 timeout-minutes: 25 @@ -139,6 +150,7 @@ jobs: pre-commit: name: Pre-commit + if: github.event_name == 'pull_request' runs-on: ubuntu-24.04 timeout-minutes: 15 @@ -167,7 +179,6 @@ jobs: coverage: name: Coverage - needs: unit runs-on: ubuntu-24.04 timeout-minutes: 30 @@ -187,7 +198,7 @@ jobs: - name: Run coverage run: | - pytest tests/unit \ + python -m pytest tests/unit \ --cov CodeEntropy \ --cov-report term-missing \ --cov-report xml \ From c07317a07327052adc7b455f1c5e5d582ce3d983 Mon Sep 17 00:00:00 2001 From: harryswift01 Date: Wed, 3 Jun 2026 10:11:12 +0100 Subject: [PATCH 2/3] ci(workflows): update execution order of workflow steps --- .github/workflows/pr.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 13da17a..5112a68 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -46,6 +46,7 @@ jobs: discover-systems: name: Discover regression systems if: github.event_name == 'pull_request' + needs: [docs, pre-commit, coverage] runs-on: ubuntu-24.04 outputs: systems: ${{ steps.set-systems.outputs.systems }} @@ -73,7 +74,7 @@ jobs: regression-quick: name: Regression (fast) • ${{ matrix.system }} if: github.event_name == 'pull_request' - needs: [unit, discover-systems] + needs: discover-systems runs-on: ubuntu-24.04 timeout-minutes: 35 @@ -151,6 +152,7 @@ jobs: pre-commit: name: Pre-commit if: github.event_name == 'pull_request' + needs: unit runs-on: ubuntu-24.04 timeout-minutes: 15 @@ -179,6 +181,7 @@ jobs: coverage: name: Coverage + needs: unit runs-on: ubuntu-24.04 timeout-minutes: 30 From f9d8c45d8a0dad0fd8018ca15a27d531cf047b65 Mon Sep 17 00:00:00 2001 From: harryswift01 Date: Wed, 3 Jun 2026 10:23:25 +0100 Subject: [PATCH 3/3] ci(workflows): update workflow execution order within PR workflow --- .github/workflows/pr.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 5112a68..c1b25f6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -46,7 +46,6 @@ jobs: discover-systems: name: Discover regression systems if: github.event_name == 'pull_request' - needs: [docs, pre-commit, coverage] runs-on: ubuntu-24.04 outputs: systems: ${{ steps.set-systems.outputs.systems }}