Migrate to using django-rq for scheduled calls #78
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: Song Book | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Week number | |
id: weeknum | |
run: | | |
echo "::set-output name=weeknum::$(/bin/date -u "+%g.%V")" | |
shell: bash | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.local/share/virtualenvs | |
Pipfile.lock | |
key: ${{ runner.os }}-w${{ steps.weeknum.outputs.weeknum }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile') }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv # Install all dependencies. | |
pipenv update --dev | |
- name: Lint with Pylint | |
run: | | |
./pylint-check.sh |