Skip to content

Doc: add Node as requirement to RTD config #1068

Doc: add Node as requirement to RTD config

Doc: add Node as requirement to RTD config #1068

Workflow file for this run

on: [push, pull_request]
name: continuous integration
defaults:
run:
shell: bash
jobs:
lint-python:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: |
pip install "$(grep -E '^flake8' django/requirements-test.txt)"
pip install "$(grep -E '^mypy' django/requirements-test.txt)"
name: Install lint tools
- run: flake8 --statistics --count django
- run: mypy django/
lint-javascript:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- run: npm install
- run: npm run lint:js-diff
name: Check lint errors against blessed failures
- run: npm run jsdoc
name: Ensure that docs are valid
test-backend:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
# For PyPy use 'pypy-3.8'. It is disabled by default due to long build times.
python-version: ['3.8', '3.9']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- run: bash scripts/travis/install_postgres.sh
- run: bash scripts/travis/install_gdal.sh
- run: sudo apt-get install -y -qq $(< packagelist-ubuntu-apt.txt)
name: Install ubuntu requirements
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py_${{ matrix.python-version }}-${{ hashFiles('django/requirements*.txt') }}
- run: pip install ./django[test] coveralls
- run: bash scripts/travis/setup_database.sh
- run: bash scripts/travis/configure_catmaid.sh
- run: bash scripts/travis/configure_pypy_libs.sh
if: ${{ matrix.python-version == 'pypy3' }}
- run: django/projects/manage.py migrate --noinput
name: Apply migrations
- run: django/projects/manage.py makemigrations catmaid
name: Check migrations are up to date
- run: coverage run django/projects/manage.py test catmaid.tests
name: Run tests
test-frontend:
runs-on: ubuntu-18.04
strategy:
fail-fast: false
matrix:
python-version: ['3.8']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- run: npm install
- run: bash scripts/travis/install_postgres.sh
- run: bash scripts/travis/install_gdal.sh
- run: sudo apt-get install -y -qq $(< packagelist-ubuntu-apt.txt)
name: Install ubuntu requirements
- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py_${{ matrix.python-version }}-${{ hashFiles('django/requirements.txt') }}
- run: pip install ./django
- run: bash scripts/travis/setup_database.sh
- run: bash scripts/travis/configure_catmaid.sh
- run: python django/projects/manage.py migrate --noinput
name: Apply migrations
- run: python django/projects/manage.py collectstatic --link --noinput
- run: |
sed -i 's/login_required(\([^)]*\))/\1/g' django/applications/catmaid/urls.py
python -Wall -Wignore::ImportWarning django/projects/manage.py runserver &
sleep 5
name: Start development server
- run: npm run karma