Skip to content

Migrate from Rockset to MongoDB Atlas #109

Migrate from Rockset to MongoDB Atlas

Migrate from Rockset to MongoDB Atlas #109

Workflow file for this run

# Execute API tests in tests/ with server.py running locally
name: Local API Tests
on:
push:
paths:
- server.py
- requirements.txt
- db/**/*
- src/*
- tests/**/*
- setup.sh
pull_request:
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.11.9'
cache: pip
- name: Install app requirements
run: pip install -r requirements.txt
- name: Clone v2-src
run: git clone https://github.com/gadhagod/Hyrule-Compendium-API -b v2-src v2
- name: Start server
run: python3 -c "from server import app; app.run()" &
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
RS2_TOKEN: ${{ secrets.RS2_TOKEN }}
RS2_SERVER: ${{ secrets.RS2_SERVER }}
- name: Install test dependencies
run: |
cd tests
npm i
- name: Execute tests
run: |
cd tests
env URL="http://127.0.0.1:5000" npx mocha