From 8fb8cc42c69b90133978d4907adce6fe7de224ec Mon Sep 17 00:00:00 2001 From: XiangRongLin <41164160+XiangRongLin@users.noreply.github.com> Date: Sat, 27 Nov 2021 18:08:35 +0100 Subject: [PATCH] Migrate to github actions from travis CI --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ .travis.yml | 19 ------------------- 2 files changed, 25 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9432539 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a358363..0000000 --- a/.travis.yml +++ /dev/null @@ -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 -