Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
- Specify python version
- Correct command
  • Loading branch information
jacklinke committed Jan 21, 2023
1 parent 04032e5 commit ea4c4ec
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/checkout@v3
- run: python -m pip install black
- run: black -l 119 --check --diff .
Expand All @@ -19,6 +21,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/checkout@v3
- run: python -m pip install isort
- run: isort --profile=black --line-length=119 .
Expand All @@ -27,6 +31,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: actions/checkout@v3
- run: python -m pip install flake8
- run: flake8 --max-line-length=119
Expand Down Expand Up @@ -69,7 +75,7 @@ jobs:
run: |
python -VV
python -m site
poetry run django-admin --version
poetry run python manage.py --version
- name: Run Migrations
run: python manage.py migrate
Expand Down

0 comments on commit ea4c4ec

Please sign in to comment.