From a54b5b7cdc7a06a4069212355c033a746f985603 Mon Sep 17 00:00:00 2001 From: martincostello Date: Sun, 15 Mar 2026 16:00:38 +0000 Subject: [PATCH 1/3] Test multiple Python versions - Update tests to run a matrix for 3.11-3.14. - Update GitHub Actions to their latest versions. --- .github/workflows/self_test.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/self_test.yml b/.github/workflows/self_test.yml index 3da0c9a..bf38de8 100644 --- a/.github/workflows/self_test.yml +++ b/.github/workflows/self_test.yml @@ -6,13 +6,23 @@ on: jobs: build: runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python-version: + - '3.11' + - '3.12' + - '3.13' + - '3.14' + name: Run the python tests steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - name: Setup python - uses: actions/setup-python@v3 + uses: actions/setup-python@v6 with: - python-version: 3.11.2 + python-version: ${{ matrix.python-version }} architecture: x64 - run: pip install aiohttp - run: cd test && python self_test.py From cee6fb410e85063cd43c1694305f0dca536fb97f Mon Sep 17 00:00:00 2001 From: martincostello Date: Sun, 15 Mar 2026 16:06:57 +0000 Subject: [PATCH 2/3] Disable Python 3.14 - Disable until #581 is fixed. - Add job to meet the required statuses without needing to reconfigure the status checks. --- .github/workflows/self_test.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/self_test.yml b/.github/workflows/self_test.yml index bf38de8..20934e2 100644 --- a/.github/workflows/self_test.yml +++ b/.github/workflows/self_test.yml @@ -14,7 +14,8 @@ jobs: - '3.11' - '3.12' - '3.13' - - '3.14' + # Enable once https://github.com/w3c/trace-context/issues/581 is fixed + # - '3.14' name: Run the python tests steps: @@ -27,3 +28,20 @@ jobs: - run: pip install aiohttp - run: cd test && python self_test.py shell: bash + + self-test: + name: Run the python tests + needs: [ build ] + if: ${{ !cancelled() }} + env: + TESTS_SUCCESS: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + runs-on: ubuntu-latest + steps: + - run: | + if [ "$TESTS_SUCCESS" == "true" ] + then + echo 'Self tests successful ✅' + else + echo 'Self tests failed ❌' + exit 1 + fi From fecefd4084dbf44f791ec8a76a3bccc73f68817c Mon Sep 17 00:00:00 2001 From: martincostello Date: Sun, 15 Mar 2026 16:19:57 +0000 Subject: [PATCH 3/3] Address Copilot feedback - Rename steps. - Fix indentation. --- .github/workflows/self_test.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/self_test.yml b/.github/workflows/self_test.yml index 20934e2..37be800 100644 --- a/.github/workflows/self_test.yml +++ b/.github/workflows/self_test.yml @@ -17,7 +17,7 @@ jobs: # Enable once https://github.com/w3c/trace-context/issues/581 is fixed # - '3.14' - name: Run the python tests + name: Self-test with Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v6 - name: Setup python @@ -37,11 +37,11 @@ jobs: TESTS_SUCCESS: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} runs-on: ubuntu-latest steps: - - run: | - if [ "$TESTS_SUCCESS" == "true" ] - then - echo 'Self tests successful ✅' - else - echo 'Self tests failed ❌' - exit 1 - fi + - run: | + if [ "$TESTS_SUCCESS" == "true" ] + then + echo 'Self tests successful ✅' + else + echo 'Self tests failed ❌' + exit 1 + fi