updated tools excel to remove logos and removed ooperational focus fr… #493
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Django tests and Selenium tests | |
on: [push] | |
jobs: | |
docker: | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
services: | |
selenium: | |
image: selenium/standalone-firefox | |
options: --shm-size=2gb | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create .env-file | |
run: cp .env.example .env | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm install | |
- name: Execute build_initial command | |
run: ./run build_initial dev | |
- name: Run dev-environment | |
run: ./run up_initial dev postgres/webcentral_db_20241213_fixed_tools.sql | |
- name: Execute unittest for common app | |
run: docker exec -w /webcentral/src webcentral python manage.py test common | |
- name: Execute unittest for project_listing app | |
run: docker exec -w /webcentral/src webcentral python manage.py test project_listing | |
- name: Execute unittest for tools_over app | |
run: docker exec -w /webcentral/src webcentral python manage.py test tools_over | |
- name: Execute unittest for TechnicalStandards app | |
run: docker exec -w /webcentral/src webcentral python manage.py test TechnicalStandards | |
- name: Execute unittest for protocols app | |
run: docker exec -w /webcentral/src webcentral python manage.py test protocols | |
- name: Execute unittest for datasets app | |
run: docker exec -w /webcentral/src webcentral python manage.py test Datasets | |
- name: Execute unittest for businessModel app | |
run: docker exec -w /webcentral/src webcentral python manage.py test businessModel | |
- name: Execute unittest for publications app | |
run: docker exec -w /webcentral/src webcentral python manage.py test publications | |
- name: Setup selenium dev-environment | |
run: | | |
python -m venv webcentral/test/testing_venv | |
source webcentral/test/testing_venv/bin/activate | |
pip install -r webcentral/test/requirements_testing.txt | |
set -o allexport | |
source .env | |
set +o allexport | |
cd webcentral/test/06_system_test | |
HEADLESS=1 python testrunner.py |