Skip to content

Added get-lib-jemalloc #208

Added get-lib-jemalloc

Added get-lib-jemalloc #208

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

View workflow run for this annotation

GitHub Actions / Test script on modified meta

Invalid workflow file

The workflow is not valid. .github/workflows/run-tests-on-modified-meta.yml (Line: 35, Col: 20): Unexpected symbol: '['. Located at position 122 within expression: needs.get_modified_files.outputs.processed_files != '' && fromJSON(needs.get_modified_files.outputs.processed_files) || [] .github/workflows/run-tests-on-modified-meta.yml (Line: 35, Col: 20): Unexpected value '${{ needs.get_modified_files.outputs.processed_files != '' && fromJSON(needs.get_modified_files.outputs.processed_files) || [] }}'
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