From ba3b9076c09e20134c9a77608c2e07346913f193 Mon Sep 17 00:00:00 2001 From: Erez Sh Date: Sun, 29 Mar 2020 11:08:04 +0300 Subject: [PATCH] Attempt to add tests to github actions --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..c37e7a7 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: Tests +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Download submodules + run: | + git submodule update --init --recursive + git submodule sync -q + git submodule update --init + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8] + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r nearley-requirements.txt + - name: Run tests + run: | + python -m tests \ No newline at end of file