Skip to content

Commit

Permalink
Set up mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hyman committed Jul 13, 2021
1 parent 1f5a440 commit 8870231
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

name: Upload Python Package

env:
DB_DATABASE: edge_dev
DB_USER: root
DB_PASSWORD: ''

on:
push:
branches:
Expand Down Expand Up @@ -39,6 +44,10 @@ jobs:
restore-keys: npm-
# - name: Set up npm
# uses: bahmutov/npm-install@v1
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: Set up cache
uses: actions/cache@v1
id: cache
Expand All @@ -55,8 +64,8 @@ jobs:
- name: Install dependencies
run: |
npm install -g bower
pip install mysql-python
python -m pip install --upgrade pip
python -c 'import MySQLdb as Database; print(Database.__version__)'
- name: Build package
run: python -m build
- name: Publish package
Expand Down

0 comments on commit 8870231

Please sign in to comment.