-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (47 loc) · 1.37 KB
/
django.yaml
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
42
43
44
45
46
47
48
49
name: Django
on:
pull_request:
branches:
- "*"
jobs:
pytest:
name: Test Django
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v2
- name: Read Python version
run: echo PYTHON_VERSION=$(cat runtime.txt | sed "s/python-//") >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
- name: Setup
run: |
pip install --requirement requirements.txt
- name: Run Tests
run: make test
check-django-configuration:
name: Check Django Configuration
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- name: Clone Repo
uses: actions/checkout@v2
- name: Read Python version
run: echo PYTHON_VERSION=$(cat runtime.txt | sed "s/python-//") >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: "pip"
- name: Setup
run: |
pip install --requirement requirements.txt
- name: Test Django Configured Correctly
run: make check-django
env:
SECRET_KEY: Some very long and complex string which is very, very secure.
CANONICAL_HOST: project-name.net