Skip to content

Trying again

Trying again #450

Workflow file for this run

name: Test Package Quality
on: push
permissions:
contents: read
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install package
run: |
pip install -e .
- name: Run Linting
run: |
pre-commit install
pre-commit autoupdate
pre-commit run --all
- name: Setup MySQL Server
env:
DB_USER: root
DB_PASSWORD: root
run: |
sudo apt-get install mysql-server
sudo systemctl start mysql
echo "REACHED HERE"
sudo mysql
CREATE USER optuna@"%";
CREATE DATABASE ppo_hpo;
CREATE DATABASE sac_hpo;
CREATE DATABASE gp_mpc_hpo;
GRANT ALL ON ppo_hpo.* TO optuna@"%";
GRANT ALL ON sac_hpo.* TO optuna@"%";
GRANT ALL ON gp_mpc_hpo.* TO optuna@"%";
exit
- name: Unit tests
run: |
python -m pytest tests/
rm -rf tmp/