Add blog to Docker image. #3879
Workflow file for this run
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: Tests Runner | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-20.04 | |
env: | |
ALLOWED_HOSTS: '*' | |
AWS_ACCESS_KEY_ID: 'a secret to everybody' | |
AWS_SECRET_ACCESS_KEY: 'a secret to everybody' | |
DATABASE_SSL_REQUIRE: 'off' | |
DJSTRIPE_WEBHOOK_SECRET: 'whsec_asecrettoeverybody' | |
DJSTRIPE_WEBHOOK_VALIDATION: '' | |
HASHID_FIELD_SALT: 'a secret to everybody' | |
IS_SECURE: 'off' | |
SECRET_KEY: 'a secret to everybody' | |
SECURE_SSL_REDIRECT: 'off' | |
SENDGRID_API_KEY: 'a secret to everybody' | |
SENTRY_ENABLED: 'off' | |
SENTRY_DSN: 'dsn_example' | |
STRIPE_LIVE_MODE: 'off' | |
STRIPE_LIVE_SECRET_KEY: 'sk_live_asecrettoeverybody' | |
STRIPE_TEST_SECRET_KEY: 'sk_test_asecrettoeverybody' | |
STRIPE_TEST_PUBLISHABLE_KEY: 'pk_test_asecrettoeverybody' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
- name: Set up Python | |
run: uv python install | |
- name: Install the project | |
run: uv sync --dev | |
- name: Fake build the site.css | |
run: touch static/site.css | |
- name: Check types | |
run: make mypy | |
- name: Test it | |
run: make coverage | |
- name: Check deploy configuration | |
run: uv run manage.py check --deploy --fail-level WARNING | |
env: | |
DATABASE_URL: 'sqlite://:memory:' | |
SECRET_KEY: 'zt(6jlr#oquxm2t%ryh#n+-72p^(3knbf&q$5x16#o%1im-s7!' | |
SECURE_SSL_REDIRECT: 'on' | |
- name: Check documentation build | |
run: make docs |