Skip to content

Commit

Permalink
Use github actions to replace travis (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
yxiong authored Mar 21, 2022
1 parent 65541b3 commit 0d709c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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/
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 0d709c0

Please sign in to comment.