Bundle all cron-related commands #109
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
# This workflow handles checking the code formatting quality | |
# Only .py files are covered | |
name: Check code formatting quality | |
# Trigger workflow when code has been pushed to a branch or a pull request has been issued | |
on: [push, pull_request] | |
jobs: | |
# Check if code follows Black formatting: | |
# https://black.readthedocs.io/en/stable/ | |
run-black-formatter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
# Check if order of imports follows isort convention: | |
# https://pycqa.github.io/isort/ | |
run-isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- uses: isort/isort-action@master | |
with: | |
configuration: "--profile black" | |
# Declare all the requirements files here | |
requirementsFiles: "dependencies/requirements-app.txt dependencies/requirements-workflow.txt dependencies/requirements-google-api.txt" |