-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 1002 Bytes
/
dev.yml
File metadata and controls
41 lines (34 loc) · 1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Dev Run Tests
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: buzz.settings.github
GET_SECRETS_FROM_ENV: true
SECRET_KEY: ${{secrets.CI_DJANGO_SECRET_KEY}}
TWITCH_CLIENT_ID: ${{secrets.TWITCH_CLIENT_ID}}
TWITCH_CLIENT_SECRET: ${{secrets.TWITCH_CLIENT_SECRET}}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7.10
- uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: ${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.github.txt') }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.github.txt; fi
- name: Run migrations
run: python manage.py migrate
- name: Run tests
run: pytest