Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Adding pull requests workflow #298

Adding pull requests workflow

Adding pull requests workflow #298

Workflow file for this run

name: Site testing
on:
push:
branches-ignore:
- main
pull_request:
jobs:
pre_commit:
name: Run pre-commit validation hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
# vale:
# name: runner / vale
# needs: pre_commit
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: errata-ai/vale-action@reviewdog
# env:
# # Required, set by GitHub actions automatically:
# # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# with:
# files: workshops/
test_build:
name: Build site with no warnings
needs: pre_commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: 3.x
##### Install required Python Modules and build the website #####
- run: pip install -r requirements.txt
- run: pip install git+https://${{ secrets.MKDOCS_INSIDER_TOKEN }}@github.com/squidfunk/[email protected]
- run: mkdocs build --strict