Skip to content

[#591] indicator position and cache improvements #1114

[#591] indicator position and cache improvements

[#591] indicator position and cache improvements #1114

Workflow file for this run

name: Climate plan monitor CI
on:
push:
branches-ignore: [deploy-to-testing, deploy-to-production]
workflow_dispatch:
env:
PYTHON_VERSION: '3.10'
POETRY_VERSION: '1.3.2'
NODE_VERSION: '16.16'
YARN_VERSION: '3.4.1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: install pytest and playwright
run: |
python -m pip install --upgrade pip
pip install poetry==${{ env.POETRY_VERSION }}
poetry install --with dev
poetry run playwright install --with-deps chromium
- name: use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: install Yarn
run: corepack enable && yarn set version ${{ env.YARN_VERSION }}
- name: install javascript dependencies
run: |
yarn install
- name: run pre-commit hooks on all files
run: SKIP=no-commit-to-branch poetry run pre-commit run --all-files
- name: create database
run: poetry run python manage.py migrate --settings=config.settings.local
- name: fill database
run: poetry run python manage.py loaddata --settings=config.settings.local e2e_tests/database/test_database.json
- name: create networks
run: |
docker network create testing_nginx_network
docker network create production_nginx_network
- name: start reverse-proxy
run: docker compose -f docker/reverseproxy/docker-compose.yml up -d --build
- name: build testing application
run: docker compose -f docker-compose.yml up -d
- name: run tests
run: poetry run pytest