Skip to content

Commit

Permalink
Update the github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
transientlunatic committed Aug 16, 2024
1 parent 58e6e14 commit 5fb79d0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 33 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/documentation.yaml
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 }}
43 changes: 10 additions & 33 deletions .github/workflows/review.yml
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/

0 comments on commit 5fb79d0

Please sign in to comment.