Upgraded python version and all packages #253
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: job-portal | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
git fetch --prune --unshallow | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- 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:$HEROKU_API_TOKEN@git.heroku.com/$HEROKU_APP_NAME.git | |
# git push heroku HEAD:master -f |