Skip to content

Fix really slow editing in a large shell script #238

Fix really slow editing in a large shell script

Fix really slow editing in a large shell script #238

Workflow file for this run

# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
on:
push: {}
schedule:
- cron: '40 21 * * 4'
jobs:
vim-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
wget https://github.com/google/vroom/releases/download/v0.14.0/vroom_0.14.0-1_all.deb
sudo apt-get update
sudo apt-get -y install \
./vroom_0.14.0-1_all.deb \
bsdutils \
vim-gtk3
# Install dependencies of vim scripts.
sudo apt-get -y install python3-jsonschema
- name: Test
run: |
script --quiet --return --command 'xvfb-run vroom --crawl .'
python-tests:
strategy:
matrix:
python-version:
- '3.11'
- '3.12'
- '3.13'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install Jinja2 jsonschema pytest-cov PyYAML
- name: Check types
# TODO(https://github.com/google/pytype/issues/1475): Remove this
# condition.
if: ${{ matrix.python-version != '3.13' }}
run: |
pip install pytype
cd .local/lib/python3/site-packages
pytype .
- name: Test
run: |
cd .local/lib/python3/site-packages
python -m pytest --cov=. --cov-branch --cov-report=term-missing
shell-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test
run: |
./.local/bin/dotfiles-test-sh