-
Notifications
You must be signed in to change notification settings - Fork 11
35 lines (35 loc) · 1.71 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# GitHub Action to compile and test
name: test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
task: [data-check, codespell]
#spellintian, nosetests, karma, lint, closure-compiler,
steps:
- uses: actions/checkout@master
- name: Install dependencies
env:
TASK: ${{ matrix.task }}
run: |
if [ "$TASK" = "nosetests" -o "$TASK" = "flake8" -o "$TASK" = "flake8-wip" ]; then pip install json-spec; fi
if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then npm install -g grunt-cli; fi
if [ "$TASK" = "karma" -o "$TASK" = "lint" -o "$TASK" = "closure-compiler" ]; then npm install; fi
if [ "$TASK" = "flake8" -o "$TASK" = "flake8-wip" ]; then pip install flake8; fi
# If this causes SSL errors, then Sourceforge is probably in disaster recovery mode and needing Javascript. Could switch to a specific mirror, e.g. kent.dl.sourceforge.net
if [ "$TASK" = "pychecker" -o "$TASK" = "pychecker-wip" ]; then pip install http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz/download; fi
#if [ "$TASK" = "codespell" ]; then pip install git+https://github.com/codespell-project/codespell.git; fi
if [ "$TASK" = "codespell" ]; then pip install codespell; fi
sudo apt-get install xvfb
sudo apt-get install libhtml-parser-perl
sudo apt-get install lintian
sudo apt-get install moreutils
- uses: codespell-project/codespell-problem-matcher@v1
- name: Test
env:
TASK: ${{ matrix.task }}
run: |
bash -ex .travis-ci.sh