opensafely / gh-testing-research

0 stars 0 forks source link

Stoppit and Tidyup #4

Closed iaindillingham closed 1 month ago

iaindillingham commented 5 months ago

This repo is used by opensafely-core/research-action for testing. It should:

As the study within this repo is also a dependency of opensafely-core/research-action, then the study should be tested on a schedule to ensure that any changes to opensafely (i.e. the CLI) don't break it.

Stoppit and Tidyup

remlapmot commented 5 months ago

For testing on a schedule - (you probably already know) - GHA workflows allow a CRON-type syntax.

In cox-ipw we run our little test once a week with

on:
  pull_request:
  workflow_dispatch:
  schedule:
    - cron: '37 2 * * TUE' 

https://github.com/opensafely-actions/cox-ipw/blob/6d53340cb9a56da72991ee87d756dfc63e37eceb/.github/workflows/test_runner.yaml#L6-L7

(I don't know if there is a cleverer way to do it based on checking for new releases of the CLI)