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