Merge pull request #225 from BenediktMKuehne/main #147
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: 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 |