Skip to content

Allow user to select whether or not to apply variability multiplier (… #112

Allow user to select whether or not to apply variability multiplier (…

Allow user to select whether or not to apply variability multiplier (… #112

Workflow file for this run

name: Test Database
on:
push:
branches:
- main
pull_request:
paths:
- 'db/**'
branches:
- main
jobs:
test-database:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- uses: mirromutth/[email protected]
with:
mysql version: '8.0.22'
mysql database: 'esprr_data'
mysql root password: 'testpassword'
- name: Install Dependencies
run: |
cd db
python -m pip install --upgrade pip
pip install -r test-requirements.txt
pip list
- name: Migrate database
env:
DATABASE_URL: "mysql://root:[email protected]:3306/esprr_data"
run: |
curl -fsSL -o ./dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
chmod +x ./dbmate
./dbmate --wait up
- name: Test
run: pytest db