Skip to content

Commit

Permalink
Run job on more runners
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanzon committed Mar 24, 2024
1 parent 103f18b commit b9f4ed8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
name: Tests

on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: 0 0 1 1 *

jobs:
vader-vim:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rhysd/action-setup-vim@v1
- run: make test-vim

vader-nvim:
runs-on: ubuntu-latest
vader:
strategy:
fail-fast: false
matrix:
editor: [vim, neovim]
version: [stable, nightly]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.version }}
neovim: ${{ matrix.editor == 'neovim' }}
configure-args: --enable-python3interp
- run: pip install pynvim
- run: make test-nvim
if: ${{ matrix.editor == 'neovim' }}
- run: make test-${{ matrix.editor }}

python:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export PYTHONPATH = python3

test: test-python test-vim test-nvim
test: test-python test-vim test-neovim

test-python:
python3 python3/emmet/node_test.py
Expand All @@ -9,7 +9,7 @@ test-python:
test-vim: dependencies
vim -u test/vimrc -c 'Vader! test/*.vader'

test-nvim: dependencies
test-neovim: dependencies
VADER_OUTPUT_FILE=/dev/stderr nvim -u test/vimrc -c 'Vader! test/*.vader' --headless

clean:
Expand Down

0 comments on commit b9f4ed8

Please sign in to comment.