Skip to content

Run black formatter in github action #257

Run black formatter in github action

Run black formatter in github action #257

Workflow file for this run

name: job-portal
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
git fetch --prune --unshallow
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run black code formatter
run: |
black --check --exclude='./*/migrations/' ./
# - name: Django Testing project
# run: |
# python manage.py collectstatic
# python manage.py test # Don't forget to run tests
# - name: Deploy to Heroku
# env:
# HEROKU_API_TOKEN: ${{ secrets.HEROKU_API_TOKEN }}
# HEROKU_APP_NAME: ${{ secrets.HEROKU_APP_NAME }}
# if: github.ref == 'refs/heads/master' && job.status == 'success'
# run: |
# git remote add heroku https://heroku:[email protected]/$HEROKU_APP_NAME.git
# git push heroku HEAD:master -f