From 0d709c088badd8767b9ee3eca07ba58ffbae1524 Mon Sep 17 00:00:00 2001 From: Ying Xiong Date: Mon, 21 Mar 2022 10:06:04 -0700 Subject: [PATCH] Use github actions to replace travis (#245) --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ .travis.yml | 13 ------------- 2 files changed, 26 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..eaaba068 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Test +on: + push: + branches: + - master + pull_request: + workflow_dispatch: +jobs: + run-unit-test: + runs-on: ubuntu-20.04 + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Set up python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install sphinx==4.4.0 pyspark==3.2.1 tensorflow-cpu==2.8.0 pytest + - name: Make docs + run: pushd docs/ && PYTHONPATH=.. make clean html && popd + - name: Run tests + run: | + python -m pytest tests/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 066c38da..00000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -dist: xenial - -language: python - -python: - - "3.7" - -install: - - pip install sphinx==3.2.1 pyspark==3.0.1 tensorflow-cpu==1.15.0 - -script: - - pushd docs/ && PYTHONPATH=.. make clean html && popd - - pytest