Added get-lib-jemalloc #208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test script on modified meta | ||
on: | ||
pull_request: | ||
branches: [ "main", "dev" ] | ||
paths: | ||
- 'script/**meta.yaml' | ||
jobs: | ||
get_modified_files: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
processed_files: ${{ steps.filter-modified-files.outputs.processed_files }} | ||
steps: | ||
# … your checkout, fetch, get-diff, etc … | ||
- name: Filter changed files | ||
id: filter-modified-files | ||
env: | ||
FILES: ${{ steps.modified-files.outputs.files }} | ||
run: | | ||
processed=$(echo "$FILES" | python3 .github/scripts/list_modified_files.py) | ||
processed=${processed:-[]} | ||
echo "processed_files<<EOF" >> $GITHUB_OUTPUT | ||
printf '%s\n' "$processed" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
process_modified_files: | ||
needs: get_modified_files | ||
runs-on: ubuntu-latest | ||
if: needs.get_modified_files.outputs.processed_files != '[]' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
file_info: ${{ needs.get_modified_files.outputs.processed_files != '' && fromJSON(needs.get_modified_files.outputs.processed_files) || [] }} | ||
Check failure on line 35 in .github/workflows/run-tests-on-modified-meta.yml
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Process meta.yaml file | ||
run: | | ||
echo "Processing ${{ matrix.file_info.file }} (run #${{ matrix.file_info.num_run }})" | ||
pip install mlcflow | ||
mlc pull repo ${{ github.event.pull_request.head.repo.html_url }} --branch=${{ github.event.pull_request.head.ref }} | ||
mlc test script ${{ matrix.file_info.uid }} --test_input_index=${{ matrix.file_info.num_run }} --docker_mlc_repo=${{ github.event.pull_request.head.repo.html_url }} --docker_mlc_repo_branch=${{ github.event.pull_request.head.ref }} --quiet |