Skip to content

Commit

Permalink
Change template to steps
Browse files Browse the repository at this point in the history
  • Loading branch information
ltan02 committed Oct 21, 2023
1 parent d23c265 commit de7194c
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/backend/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,30 @@ on:
django_secret:
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ inputs.python_verison }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}

steps:
- name: Set up Python ${{ inputs.python_verison }}
uses: actions/setup-python@v4
with:
python-version: ${{ inputs.python_version }}
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- name: Install pipenv
run: |
python -m pip install --upgrade pipenv wheel
- id: cache-pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}

- id: cache-pipenv
uses: actions/cache@v1
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}

- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Install dependencies
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: |
pipenv install --deploy --dev
- name: Makes sure it runs
env:
SECRET_KEY: ${{ secrets.django_secret }}
run: |
pipenv run python manage.py check
- name: Makes sure it runs
env:
SECRET_KEY: ${{ secrets.django_secret }}
run: |
pipenv run python manage.py check

0 comments on commit de7194c

Please sign in to comment.