-
Notifications
You must be signed in to change notification settings - Fork 127
70 lines (64 loc) · 1.78 KB
/
bionemo-recipes.yml
File metadata and controls
70 lines (64 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "BioNeMo Recipes CI"
on:
push:
branches:
- main
- "pull-request/[0-9]+"
- "dependabot/**"
merge_group:
types: [checks_requested]
schedule:
- cron: "0 7 * * *" # Runs at 7 AM UTC daily (12 AM MST)
defaults:
run:
shell: bash -x -e -u -o pipefail {0}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changed-files:
if: github.event_name != 'schedule'
runs-on: ubuntu-latest
outputs:
any_changed: ${{ steps.changed-files.outputs.changed_directories }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: step-security/changed-files@v46
id: changed-files
with:
base_sha: main
dir_names: true
dir_names_max_depth: 2
files: |
'models/**'
'recipes/**'
- name: List all changed files
env:
ALL_CHANGED_DIRECTORIES: ${{ steps.changed-files.outputs.all_changed_directories }}
run: |
for directory in ${ALL_CHANGED_DIRECTORIES}; do
echo "$directory was changed"
done
pre-commit:
runs-on: ubuntu-latest
needs: changed-files
if: needs.changed-files.outputs.any_changed == 'true'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: Setup UV
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- run: |
uv tool install pre-commit --with pre-commit-uv --force-reinstall
uv tool install tach>=0.9.0
uv tool update-shell
- run: ./ci/scripts/static_checks.sh