mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
tree-sitter upgrade (#5320)
* Using separate language packages and update lockfile * Fixing some but not all languages * Theme updates * More theme fixes * Improving the VS Code theme * Fixes * Fixing CSS rendering * Fixing SQL and JavaScript highlight queries * Update GitHub Actions to run syntax highlighting tests on 3.13, and avoid those tests on 3.8. * Update CHANGELOG and remove `SyntaxAwareDocument.language_name` property. * Remove unused Kotlin language syntax highlighting snapshot * Update CHANGELOG to note that Kotlin syntax highlighting was removed * Bail out of TextArea.language watcher early if tree-sitter is not installed * Skip a test on 3.8 as it relates to syntax highlighting (tree-sitter) being available
This commit is contained in:
14
.github/workflows/pythonpackage.yml
vendored
14
.github/workflows/pythonpackage.yml
vendored
@@ -35,18 +35,18 @@ jobs:
|
||||
cache: "poetry"
|
||||
- name: Install dependencies
|
||||
run: poetry install --no-interaction --extras syntax
|
||||
if: ${{ matrix.python-version != '3.13' }}
|
||||
- name: Install dependencies for 3.13
|
||||
if: ${{ matrix.python-version != '3.8' }}
|
||||
- name: Install dependencies for 3.8
|
||||
run: poetry install --no-interaction
|
||||
if: ${{ matrix.python-version == '3.13' }}
|
||||
- name: Test with pytest
|
||||
if: ${{ matrix.python-version == '3.8' }}
|
||||
- name: Test with pytest (Py39+ - with syntax highlighting)
|
||||
run: |
|
||||
poetry run pytest tests -v --cov=./src/textual --cov-report=xml:./coverage.xml --cov-report term-missing
|
||||
if: ${{ matrix.python-version != '3.13' }}
|
||||
- name: Test with pytest for 3.13
|
||||
if: ${{ matrix.python-version != '3.8' }}
|
||||
- name: Test with pytest (Py38 - without syntax highlighting)
|
||||
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.13' }}
|
||||
if: ${{ matrix.python-version == '3.8' }}
|
||||
- name: Upload snapshot report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
|
||||
Reference in New Issue
Block a user