Skip to content

Commit

Permalink
get directories from dataset_builders/pie folder
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBinder committed Apr 16, 2024
1 parent b71d296 commit 95f79bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test_datasets_single.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

name: Test Datasets
name: Test Dataset

on:
push:
Expand All @@ -20,21 +20,21 @@ on:
- ".github/workflows/test_datasets_single.yaml"

jobs:
directories: # Job that list subdirectories
directories_pie: # Job that list subdirectories
runs-on: ubuntu-latest
outputs:
dir: ${{ steps.set-dirs.outputs.dir }} # generate output name dir by using inner step output
steps:
- uses: actions/checkout@v2
- id: set-dirs # Give it an id to handle to get step outputs in the outputs key above
run: echo "::set-output name=dir::$(ls -d */ | jq -R -s -c 'split("\n")[:-1]')"
run: echo "::set-output name=dir::$(ls -d dataset_builders/pie | jq -R -s -c 'split("\n")[:-1]')"
# Define step output named dir base on ls command transformed to JSON thanks to jq

loop:
test_pie:
runs-on: ubuntu-latest
needs: [ directories ] # Depends on previous job
needs: [ directories_pie ] # Depends on previous job
strategy:
matrix:
dir: ${{fromJson(needs.directories.outputs.dir)}} # List matrix strategy from directories dynamically
dir: ${{fromJson(needs.directories_pie.outputs.dir)}} # List matrix strategy from directories dynamically
steps:
- run: echo ${{matrix.dir}}
- run: echo ${{matrix.dir}}

0 comments on commit 95f79bd

Please sign in to comment.