Skip to content

Merge pull request #279 from ncilfone/maps #67

Merge pull request #279 from ncilfone/maps

Merge pull request #279 from ncilfone/maps #67

# This workflow will verify that documentation can still build successfully
name: docs-test-build
# on: workflow_dispatch
on:
pull_request:
branches: [master]
paths: [website/**]
push:
branches: [master]
paths: [website/**]
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('./requirements/DEV_REQUIREMENTS.txt') }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./requirements/DEV_REQUIREMENTS.txt
- uses: actions/setup-node@v2
with:
node-version: 14.x
cache: npm
cache-dependency-path: website/package-lock.json
- name: Test build
working-directory: website
run: |
npm ci
npm run build