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
|
2024-02-29 22:36:46 +01:00
|
|
|
OBJECT_STORAGE_ENABLED: 'True'
|
|
|
|
OBJECT_STORAGE_ENDPOINT: 'http://localhost:19000'
|
|
|
|
OBJECT_STORAGE_ACCESS_KEY_ID: 'object_storage_root_user'
|
|
|
|
OBJECT_STORAGE_SECRET_ACCESS_KEY: 'object_storage_root_password'
|
2022-02-22 16:06:04 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
django:
|
|
|
|
name: Run Django tests and save test durations
|
2023-06-08 01:14:58 +02:00
|
|
|
runs-on: ubuntu-latest
|
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:
|
|
|
|
concurrency: 1
|
|
|
|
group: 1
|
2023-02-06 12:36:00 +01:00
|
|
|
token: ${{ secrets.POSTHOG_BOT_GITHUB_TOKEN }}
|
2024-06-27 23:16:27 +02:00
|
|
|
python-version: '3.11.9'
|
2024-10-03 00:29:04 +02:00
|
|
|
clickhouse-server-image: 'clickhouse/clickhouse-server:23.12.6.19'
|
2024-04-17 23:50:09 +02:00
|
|
|
segment: 'FOSS'
|
|
|
|
person-on-events: false
|
2022-02-22 16:06:04 +01:00
|
|
|
|
2024-04-17 23:50:09 +02:00
|
|
|
- name: Upload updated timing data as artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
2024-10-03 00:29:04 +02:00
|
|
|
if: ${{ inputs.person-on-events != 'true' && inputs.clickhouse-server-image == 'clickhouse/clickhouse-server:23.12.6.19' }}
|
2022-02-22 16:06:04 +01:00
|
|
|
with:
|
2024-04-17 23:50:09 +02:00
|
|
|
name: timing_data-${{ inputs.segment }}-${{ inputs.group }}
|
|
|
|
path: .test_durations
|
|
|
|
retention-days: 2
|
|
|
|
# - name: Save test durations
|
|
|
|
# uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
# 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>
|