Merge pull request #33 from elgohr-update/master #83
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
name: Lint | |
on: [push] | |
jobs: | |
test-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
lint-black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Run black | |
run: black --check grades grades_api grades_api_v2 gradestats scripts clients | |
check-migrations: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install python dependencies | |
run: pip install -r requirements.txt | |
- name: Check migrations | |
env: | |
DJANGO_SETTINGS_MODULE: gradestats.settings.dev | |
run: python manage.py makemigrations --check |