diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml new file mode 100644 index 0000000..4e0281a --- /dev/null +++ b/.github/workflows/documentation.yaml @@ -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/deploy-via-scp@v1.0.1 + with: + local: docs/_build/html/* + remote: /home/danwilliams/code.daniel-williams.co.uk/heron/ + host: ${{ secrets.sshhost }} + user: ${{ secrets.sshuser }} + key: ${{ secrets.sshkey }} diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 975c0bf..de2f11a 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -1,23 +1,16 @@ -# 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 @@ -25,23 +18,7 @@ jobs: 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/deploy-via-scp@v1.0.1 - 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/