Add Tabulator to globals in Rollup config #20
Workflow file for this run
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: Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'develop' | |
- 'main' | |
- 'release/**' | |
- 'feature/ci' | |
pull_request: | |
branches: | |
- 'develop' | |
- 'main' | |
jobs: | |
test-backend: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.12"] | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: edpop | |
POSTGRES_PASSWORD: edpop | |
POSTGRES_USER: edpopuser | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: Download and run Blazegraph | |
run: | | |
wget https://github.com/blazegraph/database/releases/download/BLAZEGRAPH_2_1_6_RC/blazegraph.jar | |
java -jar blazegraph.jar & | |
sleep 5 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install Python packages | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r backend/requirements.txt | |
pip install -r backend/requirements-test.txt | |
- name: Test with pytest | |
run: | | |
cd backend && pytest | |
test-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
cache-dependency-path: './frontend/package-lock.json' | |
- name: Install frontend dependencies | |
run: | | |
cd frontend | |
npm ci | |
- name: Run frontend tests | |
run: | | |
cd frontend | |
npm run test |