-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58e6e14
commit 5fb79d0
Showing
2 changed files
with
47 additions
and
33 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,37 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- v*-preview | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Build HTML Docs | ||
run: | | ||
sudo apt install pandoc | ||
pip install sphinx | ||
pip install kentigern | ||
pip install -r requirements.txt | ||
pip install -r requirements_dev.txt | ||
pip install . | ||
cd docs | ||
make multi | ||
- name: SCP Deploy HTML Docs | ||
uses: horochx/[email protected] | ||
with: | ||
local: docs/_build/html/* | ||
remote: /home/danwilliams/code.daniel-williams.co.uk/heron/ | ||
host: ${{ secrets.sshhost }} | ||
user: ${{ secrets.sshuser }} | ||
key: ${{ secrets.sshkey }} |
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 |
---|---|---|
@@ -1,47 +1,24 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: CI | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ review ] | ||
branches: | ||
- master | ||
- v*-preview | ||
pull_request: | ||
branches: [ review ] | ||
branches: | ||
- master | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Build HTML Docs | ||
|
||
- name: Run Tests | ||
run: | | ||
sudo apt install pandoc | ||
pip install sphinx | ||
pip install kentigern | ||
pip install -r requirements.txt | ||
pip install -r requirements_dev.txt | ||
pip install . | ||
cd docs | ||
make html | ||
- name: SCP Deploy HTML Docs | ||
uses: horochx/[email protected] | ||
with: | ||
local: docs/_build/html/* | ||
remote: /home/danwilliams/code.daniel-williams.co.uk/heron/review | ||
host: ${{ secrets.sshhost }} | ||
user: ${{ secrets.sshuser }} | ||
key: ${{ secrets.sshkey }} | ||
python -m unittest discover tests/ |