From 23135919d85d88c7a8d366352fcd09b9fde3fbba Mon Sep 17 00:00:00 2001 From: Ali Ebrahim Date: Tue, 27 Aug 2024 16:06:28 +0000 Subject: [PATCH] Test in Python 3.13 RC1. --- .github/workflows/test.yml | 46 +++++++++++++++++++++++--------------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6d8b7ce..00f327e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,25 +9,35 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, windows-2019, macos-11] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-alpha.3", "pypy3.10", "pypy3.9"] + os: [ubuntu-24.04, windows-2022, macos-14] + python-version: + [ + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", + "3.13.0-rc.1", + "pypy3.10", + "pypy3.9", + ] steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - cache: pip - - run: pip install pytest - - run: pytest . --junitxml=junit/test_py${{ matrix.python-version }}_on_${{ matrix.os }}.xml - - run: python -O once_test.py - - run: python -OO once_test.py - - name: Upload pytest test results - uses: actions/upload-artifact@v4 - if: success() || failure() - with: - name: test-py${{ matrix.python-version}}-on-${{ matrix.os }} - path: junit/test_py${{ matrix.python-version }}_on_${{ matrix.os }}.xml + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: pip + - run: pip install pytest + - run: pytest . --junitxml=junit/test_py${{ matrix.python-version }}_on_${{ matrix.os }}.xml + - run: python -O once_test.py + - run: python -OO once_test.py + - name: Upload pytest test results + uses: actions/upload-artifact@v4 + if: success() || failure() + with: + name: test-py${{ matrix.python-version}}-on-${{ matrix.os }} + path: junit/test_py${{ matrix.python-version }}_on_${{ matrix.os }}.xml lint: runs-on: ubuntu-latest