Repository navigation
Merge pull request #54 from ubaldot/dependabot/github_actions/julia-a… #477
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: unit-tests | |
| on: [push, pull_request] | |
| jobs: | |
| unit_test: | |
| name: unit_test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| vim: | |
| - nightly | |
| - v9.1.2125 | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Setup Vim | |
| uses: rhysd/action-setup-vim@v1 | |
| id: vim | |
| with: | |
| version: ${{ matrix.vim }} | |
| - name: Checkout vim-replica plugin code | |
| uses: actions/checkout@v7 | |
| - name: Setup Julia | |
| uses: julia-actions/setup-julia@v3 | |
| - name: Cache Julia environment | |
| uses: julia-actions/cache@v3 | |
| - name: Install Julia packages | |
| run: julia .github/scripts/packages.jl | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: 'release' | |
| - name: Install R packages | |
| run: Rscript .github/scripts/packages.R | |
| - name: Setup Python | |
| uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install python packages | |
| run: pip install -r ./.github/scripts/requirements.txt | |
| - name: Run Tests | |
| run: | | |
| uname -a | |
| export VIMPRG=${{ steps.vim.outputs.executable }} | |
| $VIMPRG --version | |
| cd test | |
| source ./run_tests.sh 1 | |
| unit_test_windows: | |
| name: unit_test_windows | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| vim: | |
| - nightly | |
| - v9.1.2125 | |
| steps: | |
| - name: Setup Vim | |
| uses: rhysd/action-setup-vim@v1 | |
| id: vim | |
| with: | |
| version: ${{ matrix.vim }} | |
| - name: Checkout vim-replica plugin code | |
| uses: actions/checkout@v7 | |
| - name: Setup Julia | |
| uses: julia-actions/setup-julia@v3 | |
| - name: Cache Julia environment | |
| uses: julia-actions/cache@v3 | |
| - name: Install Julia packages | |
| run: julia .github/scripts/packages.jl | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: 'release' | |
| - name: Install R packages | |
| run: Rscript .github/scripts/packages.R | |
| - name: Setup Python | |
| uses: actions/setup-python@v7.0.0 | |
| with: | |
| python-version: '3.12' | |
| cache: 'pip' | |
| - name: Install python packages | |
| run: pip install -r ./.github/scripts/requirements.txt | |
| - name: Run Tests | |
| run: | | |
| systeminfo | |
| echo "Vim command setup." | |
| $Env:VIMPRG = "${{ steps.vim.outputs.executable }}" | |
| & $Env:VIMPRG --version | |
| cd test | |
| .\run_tests.ps1 |