diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000000..49aecd4fd34 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,53 @@ +on: + push: + branches-ignore: + - 'github-comments' + pull_request: + branches-ignore: + - 'github-comments' + +name: CI + +jobs: + build: + name: Build + + runs-on: ubuntu-latest + + steps: + - name: "Checkout" + uses: actions/checkout@v2 + + - name: "Set up Python 3.x" + uses: actions/setup-python@v1 + with: + python-version: '3.7' # Semantic version range syntax or exact version of a Python version + + - name: "Display Python version" + run: python -c "import sys; print(sys.version)" + + - name: "Install Sphinx dependencies" + run: sudo apt-get install python-dev build-essential + + - name: "Install Sphinx" + run: pip install --user sphinx + + - name: "Install custom requirements via pip" + run: pip install -r _build/.requirements.txt + + - name: "Build documentation" + run: make -C _build SPHINXOPTS=-nW html + + doctor-rst: + name: DOCtor-RST + + runs-on: ubuntu-latest + + steps: + - name: "Checkout" + uses: actions/checkout@v2 + + - name: "Run DOCtor-RST" + uses: docker://oskarstark/doctor-rst + with: + args: --short diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml deleted file mode 100644 index ada570e342c..00000000000 --- a/.github/workflows/lint.yaml +++ /dev/null @@ -1,12 +0,0 @@ -on: [push, pull_request] -name: Lint -jobs: - doctor-rst: - name: DOCtor-RST - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: DOCtor-RST - uses: docker://oskarstark/doctor-rst - with: - args: --short diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8ed2088e6ee..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: python - -python: 2.7 - -sudo: false -cache: - directories: [$HOME/.cache/pip] - -install: pip install -r _build/.requirements.txt - -script: make -C _build SPHINXOPTS=-nW html - -branches: - except: - - github-comments