From bce6aa57e2d7df9980695fc90b1bda05f92b4773 Mon Sep 17 00:00:00 2001 From: Guanzhong Chen Date: Thu, 7 Nov 2019 14:40:46 -0500 Subject: [PATCH] Add GitHub Actions workflow for CI (#6) --- .github/workflows/build.yml | 17 +++++++++++++++++ .travis.yml | 8 -------- 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..303e492 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: build +on: [pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + run: pip install -r requirements.txt + - name: Run syntax check + run: python check.py + - name: Build site + run: python build.py diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 246a732..0000000 --- a/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: python -python: - # Current production server runs Debian stretch, which has Python 3.5. - - '3.5' -install: - - pip install -r requirements.txt -script: - - python check.py && python build.py