-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from s-weigand/implement-gh-actions
Implement github actions
- Loading branch information
Showing
6 changed files
with
97 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters