Skip to content

Commit

Permalink
Merge pull request #48 from s-weigand/implement-gh-actions
Browse files Browse the repository at this point in the history
Implement github actions
  • Loading branch information
s-weigand committed Nov 25, 2019
2 parents 7d9c8c9 + 2aa17e7 commit de6969b
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 182 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: "Tests"
on: [push, pull_request]

jobs:
code-style:
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: |
python -m pip install --upgrade pip
pip install flake8-nb
- name: Lint with flake8-nb
run: |
flake8 flake8_nb material
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup conda
uses: s-weigand/setup-conda@master
with:
conda-channels: conda-forge
- name: Install dependencies
run: |
conda install -y pandoc
pip install -U -q -c constraints.txt -r requirements_dev.txt
- name: Show installed dependencies
run: |
pip freeze
pandoc -v
- name: Build docs
run: make --directory=docs clean html

docs-link:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup conda
uses: s-weigand/setup-conda@master
with:
conda-channels: conda-forge
- name: Install dependencies
run: |
conda install -y pandoc
pip install -U -q -c constraints.txt -r requirements_dev.txt
- name: Show installed dependencies
run: |
pip freeze
pandoc -v
- name: Build docs
run: make --directory=docs clean linkcheck

test:
runs-on: ${{ matrix.os }}
needs: [code-style, docs]
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install -U -c constraints.txt -r requirements_dev.txt
- name: Run tests
run: |
pytest --nbval
13 changes: 13 additions & 0 deletions .github/workflows/trigger-binder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Trigger-Binder-build"
on:
push:
branches:
- master

jobs:
trigger-binder-build:
runs-on: [ubuntu-latest]
steps:
- uses: s-weigand/trigger-mybinder-build@master
with:
target-repo: students-teach-students/python-tools-for-students
108 changes: 0 additions & 108 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Build Status Linux/OsX](https://api.travis-ci.org/students-teach-students/python-tools-for-students.svg?branch=master)](https://travis-ci.org/students-teach-students/python-tools-for-students)
[![Build status Windows](https://ci.appveyor.com/api/projects/status/58hq73cf6iv7xxdf/branch/master?svg=true)](https://ci.appveyor.com/project/s-weigand/python-tools-for-students-3ywm2/branch/master)
[![Actions Status](https://github.com/students-teach-students/python-tools-for-students/workflows/Tests/badge.svg)](https://github.com/students-teach-students/python-tools-for-students/actions)
[![Documentation Status](https://readthedocs.org/projects/python-tools-for-students/badge/?version=latest)](https://python-tools-for-students.readthedocs.io/en/latest/?badge=latest)
[![Notebook Viewer (nbviewer)](https://raw.githubusercontent.com/jupyter/design/master/logos/Badges/nbviewer_badge.svg?sanitize=true)](https://nbviewer.jupyter.org/github/students-teach-students/python-tools-for-students/tree/master/material/)
[![Binder](https://static.mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/students-teach-students/python-tools-for-students/master?urlpath=lab/tree/material)
Expand Down
72 changes: 0 additions & 72 deletions appveyor.yml

This file was deleted.

4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@
"TeX": {"equationNumbers": {"autoNumber": "AMS", "useLabelIds": True}}
}

linkcheck_ignore = [
r'https://github\.com/students-teach-students/python-tools-for-students/actions',
]

# -- Options for HTML output -------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down

0 comments on commit de6969b

Please sign in to comment.