2022-02-22 16:06:04 +01:00
|
|
|
name: Backend CI - Update test timing
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
env:
|
|
|
|
SECRET_KEY: '6b01eee4f945ca25045b5aab440b953461faf08693a9abbf1166dc7c6b9772da' # unsafe - for testing only
|
|
|
|
DATABASE_URL: 'postgres://posthog:posthog@localhost:5432/posthog'
|
|
|
|
REDIS_URL: 'redis://localhost'
|
|
|
|
CLICKHOUSE_HOST: 'localhost'
|
|
|
|
CLICKHOUSE_SECURE: 'False'
|
|
|
|
CLICKHOUSE_VERIFY: 'False'
|
|
|
|
TEST: 1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
django:
|
|
|
|
name: Run Django tests and save test durations
|
2023-06-06 19:01:49 +02:00
|
|
|
runs-on: ubuntu-latest-backend
|
2022-02-22 16:06:04 +01:00
|
|
|
steps:
|
2022-10-26 20:40:00 +02:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-22 16:06:04 +01:00
|
|
|
|
|
|
|
- uses: ./.github/actions/run-backend-tests
|
|
|
|
with:
|
2022-12-01 23:36:45 +01:00
|
|
|
# FIXME: These inputs are incomplete, but this workflow doesn't seem to be used currently,
|
|
|
|
# so fix this if you want to use this
|
2022-02-22 16:06:04 +01:00
|
|
|
concurrency: 1
|
|
|
|
group: 1
|
2023-02-06 12:36:00 +01:00
|
|
|
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
2022-02-22 16:06:04 +01:00
|
|
|
|
|
|
|
- name: Save test durations
|
|
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
|
|
with:
|
|
|
|
commit_message: 'Save backend test durations'
|
|
|
|
commit_user_name: PostHog Bot
|
|
|
|
commit_user_email: hey@posthog.com
|
|
|
|
commit_author: PostHog Bot <hey@posthog.com>
|