💻 Update a gist to contain a daily trivia question from Open Trivia DB
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gistscope and copy it. (https://github.com/settings/tokens/new) - Copy the
API token
- Go to your fork's
Settings>Secrets>Add a new secretfor each environment secret (below)
-
GH_TOKEN: The GitHub token generated above.
-
GIST_ID: The ID portion from your gist url:
https://gist.github.com/ChrisCarini/ef9d16e87e0458fff84bf42c4e05894b.(Alternatively this can be put directly in
.github/workflows/trivia.ymlas it is public anyway.)
python3 -m venv venv
source activate
pip install -r requirements.txtsource activate
pip-chill > requirements.txtisort main.py trivia_box.py test/ && \
mypy main.py trivia_box.py test/ && \
flake8 main.py trivia_box.py test/ && \
blue --check main.py trivia_box.py test/ && \
pytest test/