Added font-face to weasyprint #264
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@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: Run tests | |
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 |