Migrate to github actions from travis CI

This commit is contained in:
XiangRongLin 2021-11-27 18:08:35 +01:00
parent 37572731f1
commit 8fb8cc42c6
2 changed files with 25 additions and 19 deletions

25
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: linkcheck
on:
push:
branches:
- master
pull_request:
jobs:
linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up python 3
uses: actions/setup-python@v2
with:
python-version: '3.x'
cache: 'pip'
- name: install dependencies
run: pip install -r requirements.txt
- name: Verify links
run: python linkcheck.py

View File

@ -1,19 +0,0 @@
language: python
python:
- "3.6"
branches:
only:
- master
before_install:
- "pip3 install -U pip"
- "export PYTHONPATH=$PYTHONPATH:$(pwd)"
cache: pip
install:
- pip install -r requirements.txt
script: python linkcheck.py