Skip to content

Slow Tests Issue Body #2337

Slow Tests Issue Body

Slow Tests Issue Body #2337

# Taken from https://github.com/pymc-labs/pymc-marketing/tree/main/.github/workflows/slow-tests-issue.yml
# See the scripts in the `scripts/slowest_tests` directory for more information
---
name: Slow Tests Issue Body
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
# Serialize runs; don't cancel an in-progress issue update midway.
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
permissions: {}
jobs:
update-comment:
name: update-comment
runs-on: ubuntu-latest
permissions:
issues: write # required to update the slow-tests tracking issue body
steps:
- name: Install ZSH
run: sudo apt-get update && sudo apt-get install -y zsh
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.12"
- name: Trigger the script
continue-on-error: true
working-directory: scripts/slowest_tests
shell: zsh {0}
run: source update-slowest-times-issue.sh
env:
GITHUB_TOKEN: ${{ github.token }}