feat: 7.0 update #149
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python 3.9 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Redis | |
uses: zhulik/[email protected] | |
- name: Setup MySQL | |
uses: mirromutth/[email protected] | |
with: | |
mysql database: FFXIV_DEV | |
mysql user: FFXIV_DEV | |
mysql password: PASSWORD | |
- name: Setup RabbitMQ | |
uses: nijel/[email protected] | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Upgrade pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Get pip cache dir | |
id: pip-cache | |
run: | | |
echo "::set-output name=dir::$(pip cache dir)" | |
- name: pip cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.pip-cache.outputs.dir }} | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
pip install flake8 pytest | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Test | |
run: | | |
mv FFXIV/settings_example.py FFXIV/settings.py | |
python manage.py makemigrations ffxivbot | |
python manage.py makemigrations | |
python manage.py migrate | |
python manage.py test |