Skip to content

Commit

Permalink
Improve django action devex (#13)
Browse files Browse the repository at this point in the history
* Update action.yaml

* Add black --diff

* Use python version container

* Make lint continue on error
  • Loading branch information
AaDalal authored Oct 1, 2023
1 parent 8785a7d commit 3e595cc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions django-check/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,17 @@ runs:
key: v0-${{ hashFiles('${{ inputs.path }}/Pipfile.lock') }}
- name: Install Dependencies
shell: bash
continue-on-error: true
run: |-
cd ${{ inputs.path }}
pip install pipenv
pipenv install --deploy --dev
- name: Test (run in parallel)
shell: bash
run: |-
cd ${{ inputs.path }}
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=${{ inputs.projectName }}.settings.ci --parallel
pipenv run coverage combine
- name: Lint (flake8)
shell: bash
run: |-
Expand All @@ -50,13 +57,7 @@ runs:
shell: bash
run: |-
cd ${{ inputs.path }}
pipenv run black --check .
pipenv run black --check . || pipenv run black --diff .
if: ${{ inputs.black }}
- name: Test (run in parallel)
shell: bash
run: |-
cd ${{ inputs.path }}
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=${{ inputs.projectName }}.settings.ci --parallel
pipenv run coverage combine
# container:
# image: python:${{ inputs.pythonVersion }}
container:
image: python:${{ inputs.pythonVersion }}

0 comments on commit 3e595cc

Please sign in to comment.