From 71addd78f675758fd4859fe101e33365da27220a Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Wed, 22 Jan 2025 14:24:13 +0100 Subject: [PATCH] Run tests with packaging 24.0 in CI --- .github/workflows/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5d07d193..25ac6872 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,13 @@ jobs: - ubuntu-latest - macos-latest - windows-latest + tox-environment: + - py + include: + # Test with the oldest supported ``packaging`` version. + - platform: ubuntu-latest + python-version: "3.8" + tox-environment: py-packaging240 runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4.2.2 @@ -59,7 +66,7 @@ jobs: - name: Run type-checking run: python -m tox -e types - name: Run tests - run: python -m tox -e py + run: python -m tox -e ${{ matrix.tox-environment }} # Because the tests can be flaky, they shouldn't be required for merge, but # it's still helpful to run them on PRs. See: