diff --git a/.github/workflows/backend/python.yml b/.github/workflows/backend/python.yml index 2a8f2dc..8763485 100644 --- a/.github/workflows/backend/python.yml +++ b/.github/workflows/backend/python.yml @@ -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