diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72a8c6e..8f7b39c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,14 @@ jobs: check-structlog: name: Build & verify the structlog package. - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-20.04 + - ubuntu-22.04 + - ubuntu-24.04 steps: - uses: actions/checkout@v4 @@ -52,7 +59,7 @@ jobs: id: baipp with: path: structlog - upload-name-suffix: "-structlog" + upload-name-suffix: "-structlog-${{ matrix.os }}" - run: echo Packages can be found at ${{ steps.baipp.outputs.dist }} @@ -77,3 +84,20 @@ jobs: upload-name-suffix: "-pytest" - run: echo Packages can be found at ${{ steps.baipp.outputs.dist }} + + required-checks-pass: + name: Ensure everything required is passing for branch protection + if: always() + + needs: + - check-argon2-cffi-bindings + - check-structlog + - check-pytest + + runs-on: ubuntu-latest + + steps: + - name: Decide whether the needed jobs succeeded or failed + uses: re-actors/alls-green@release/v1 + with: + jobs: ${{ toJSON(needs) }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 2134f92..5639d2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased](https://github.com/hynek/build-and-inspect-python-package/compare/v2.5.0...main) +### Added + +- Support for `ubuntu-24.04` builders. + [#126](https://github.com/hynek/build-and-inspect-python-package/pull/126) + ## [2.5.0](https://github.com/hynek/build-and-inspect-python-package/compare/v2.4.0...v2.5.0) - 2024-05-13 diff --git a/action.yml b/action.yml index d0b87fe..e7c4068 100644 --- a/action.yml +++ b/action.yml @@ -153,6 +153,10 @@ runs: mkdir -p out/sdist tar xf *.tar.gz -C out/sdist + if ! command -v tree &> /dev/null; then + sudo apt-get install tree + fi + echo -e '\n
SDist contents\n' >> $GITHUB_STEP_SUMMARY (cd /tmp/baipp/dist/out/sdist && tree -Da --timefmt="%Y-%m-%dT%H:%M:%SZ" * | sed 's/^/ /' | tee -a $GITHUB_STEP_SUMMARY) echo -e '\n
\n' >> $GITHUB_STEP_SUMMARY