Skip to content

use changed-files, remove old uv stuff #4

use changed-files, remove old uv stuff

use changed-files, remove old uv stuff #4

Workflow file for this run

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