Skip to content

Remix improvements

Remix improvements #88

Workflow file for this run

name: Test
on:
push:
branches: [ development ]
pull_request:
branches: [ development ]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:12-3.4-alpine
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- name: Install Node.js Dependencies
run: npm install
- name: Build JavaScript
run: npm run build
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install packages
run: sudo apt-get install -y redis-tools redis-server binutils libproj-dev gdal-bin
- name: Verify that redis is up
run: redis-cli ping
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements_dev.txt
- name: Run Tests
env:
POSTGRES_HOST: localhost
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
VITE_DEV_MODE: 0
run: |
python manage.py migrate --no-input
python manage.py collectstatic --no-input
pytest tests