-
-
Notifications
You must be signed in to change notification settings - Fork 47
35 lines (32 loc) · 946 Bytes
/
django-check.yml
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
name: Django Project checker
on: [push]
jobs:
django-integrity:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout the Code
uses: actions/checkout@v3
- name: Get Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Case try other python
if: ${{ failure() }}
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install pipenv
run: python -m pip install --upgrade pipenv
- id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs/
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
- name: Install Pipfile
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: pipenv install --dev
- name: Test Pipenv
run: pipenv run test -svvv
# - name: Test Django
# run: pipenv run ./embark/manage.py check