Skip to content

fix: improve missing rplugin error handling; less agressive tracebacks #126

fix: improve missing rplugin error handling; less agressive tracebacks

fix: improve missing rplugin error handling; less agressive tracebacks #126

Workflow file for this run

name: "Run Tests"
on: [push, pull_request, workflow_dispatch]
jobs:
unit-tests:
name: "Unit Tests"
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
matrix:
include:
- python-version: "3.7"
os: ubuntu-22.04
- python-version: "3.8"
os: ubuntu-latest
- python-version: "3.9"
os: ubuntu-latest
- python-version: "3.10"
os: ubuntu-latest
- python-version: "3.11"
os: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: |
python -m pip install -U pip
- name: Configure environments
run: |
python --version
- name: Setup neovim
run: |
sudo apt install libfuse2
NVIM_VERSION="latest"
NVIM_DOWNLOAD_URL="https://github.com/neovim/neovim/releases/latest/download/nvim.appimage"
mkdir -p $HOME/.local/bin
wget -O $HOME/.local/bin/nvim $NVIM_DOWNLOAD_URL
chmod +x $HOME/.local/bin/nvim
pip install pynvim
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Check neovim version
run: |
nvim --version
- name: Install dependencies
run: |
pip install pytest codecov pytest-cov
pip install pyproject-flake8
- name: Linting
run: |
pflake8 semshi/
# pylint semshi/
- name: Run tests
run: |
pytest -v --cov semshi/ --cov-report term-missing:skip-covered --ignore test/test_fuzz.py test/
- name: Test coverage
run: codecov