From ea52ca53051f83fab4e3a683ff0f2fe19966a35a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 26 Dec 2020 23:07:58 +0100 Subject: [PATCH] Try to use GitHub Actions --- .github/workflows/ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++ test/vspec/pyimport.vim | 2 ++ 2 files changed, 65 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d238101 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +name: ci +on: push + +jobs: + tests: + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Setup + run: | + sudo pip install pytest + vim --version + + #- name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 + + - name: Run tests + run: 'make test' + + code-quality: + runs-on: ubuntu-20.04 + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Run tests + run: | + vim --version + make check + + coverage: + runs-on: ubuntu-20.04 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo add-apt-repository ppa:neovim-ppa/stable -y + sudo apt-get update -q + sudo apt-get install neovim -y + + sudo pip install pynvim pytest-cov + sudo pip list + nvim --version + + - name: Run tests + run: | + make --keep-going test_coverage BUILD_VIRTUAL_ENV=$VIRTUAL_ENV + + - name: Upload coverage data + run: | + coverage xml + bash <(curl -s https://codecov.io/bash) -X fix -f coverage.xml -F py${TRAVIS_PYTHON_VERSION//./} diff --git a/test/vspec/pyimport.vim b/test/vspec/pyimport.vim index ed54db1..fb4bc52 100644 --- a/test/vspec/pyimport.vim +++ b/test/vspec/pyimport.vim @@ -4,10 +4,12 @@ source test/_utils.vim describe 'pyimport' before let g:jedi#use_tabs_not_buffers = 1 + let g:jedi#project_path = 'autoload' end after try | %bwipeout! | catch | endtry + unlet g:jedi#project_path end it 'open_tab'