Skip to content

Performance alerting tool on Python load/performance/benchmark tests. #120

Performance alerting tool on Python load/performance/benchmark tests.

Performance alerting tool on Python load/performance/benchmark tests. #120

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# To learn more about GitHub Actions in Apache Beam check the CI.md
name: Run performance alerting tool on Python load/performance/benchmark tests.
on:
schedule:
- cron: '5 22 * * *'
jobs:
python_run_change_point_analysis:
name: Run Change Point Analysis.
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Get Apache Beam Build dependencies
working-directory: ./sdks/python
run: pip install pip setuptools --upgrade && pip install -r build-requirements.txt
- name: Install Apache Beam
working-directory: ./sdks/python
run: pip install -e .[gcp,test]
- name: Install signal-processing-algorithms
run: pip install signal-processing-algorithms
- name: Install pandas, yaml, requests
run: pip install pandas PyYAML requests
# - name: Run Change Point Analysis.
# working-directory: ./sdks/python/apache_beam/testing/analyzers
# shell: bash
# run: python analysis.py
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run change point analysis tests.
working-directory: ./sdks/python/apache_beam/testing/analyzers
shell: bash
run: pytest perf_analysis_test.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}