ci: run tests with Python 3.13

This commit is contained in:
TomJGooding
2024-11-30 14:56:44 +00:00
parent a913540ba3
commit b0e9f2ebec

View File

@@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
defaults:
run:
shell: bash
@@ -35,18 +35,18 @@ jobs:
cache: "poetry"
- name: Install dependencies
run: poetry install --no-interaction --extras syntax
if: ${{ matrix.python-version != '3.12' }}
- name: Install dependencies for 3.12 # https://github.com/Textualize/textual/issues/3491#issuecomment-1854156476
if: ${{ matrix.python-version != '3.13' }}
- name: Install dependencies for 3.13
run: poetry install --no-interaction
if: ${{ matrix.python-version == '3.12' }}
if: ${{ matrix.python-version == '3.13' }}
- name: Test with pytest
run: |
poetry run pytest tests -v --cov=./src/textual --cov-report=xml:./coverage.xml --cov-report term-missing
if: ${{ matrix.python-version != '3.12' }}
- name: Test with pytest for 3.12 # https://github.com/Textualize/textual/issues/3491#issuecomment-1854156476
if: ${{ matrix.python-version != '3.13' }}
- name: Test with pytest for 3.13
run: |
poetry run pytest tests -v --cov=./src/textual --cov-report=xml:./coverage.xml --cov-report term-missing -m 'not syntax'
if: ${{ matrix.python-version == '3.12' }}
if: ${{ matrix.python-version == '3.13' }}
- name: Upload snapshot report
if: always()
uses: actions/upload-artifact@v3