Skip to content

Commit

Permalink
Add GitHub Actions docs linkcheck workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
douglatornell committed Jun 22, 2020
1 parent 6134771 commit 0faa76a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/docs-linkcheck.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: docs-linkcheck

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

jobs:
test-coverage:
name: linkcheck docs
runs-on: 'ubuntu-latest'
strategy:
fail-fast: false
matrix:
python-version: ['3.8']

steps:
- uses: actions/checkout@v2

- uses: goanpeca/setup-miniconda@v1
with:
auto-update-conda: true
auto-activate-base: false
environment-file: envs/environment-test.yaml
python-version: ${{ matrix.python-version }}
activate-environment: salishsea-site-test

- name: Install package
shell: bash -l {0}
run: |
python3 -m pip install --editable $GITHUB_WORKSPACE
- name: linkcheck docs
shell: bash -l {0}
run: |
(cd docs && make linkcheck)
- uses: pioug/le-slack-message@v1.0.0
with:
ACTION_NAME: ${{ github.repository }} docs linkcheck
JOB: ${{ toJson(job) }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always()

0 comments on commit 0faa76a

Please sign in to comment.