Skip to content

Commit

Permalink
CI: minor update for running actions from bfio and filepattern (#548)
Browse files Browse the repository at this point in the history
* ci: changed actions to point to polusai repo

* docs: added marker for when to remove manual filter on broken tools

* fix: accepting ict.yaml and ict.yml instead of only one
  • Loading branch information
nishaq503 authored Jul 3, 2024
1 parent 265d2cf commit 887eff2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/find-all-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ jobs:
run: |
# List of directories to ignore
ignored_dirs="polus-python-template ftl-label .venv"
# TODO: Remove these after merging PR #547
# List of tools that are broken for known reasons
broken_tools="binary-operations basic-flatfield-estimation microjson-to-ome cell-border-segmentation precompute-slide"
broken_tools="binary-operations basic-flatfield-estimation microjson-to-ome cell-border-segmentation precompute-slide vector-to-label"
# Initialize variables
ignored_dirs="$ignored_dirs $broken_tools"
ignored_dirs=$(echo $ignored_dirs | xargs)
tool_dirs=""
# Get all directories in the current directory
# Get all sub-directories in the current directory
dirs=$(find $(pwd) -type d)
# Get all directories that have a "pyproject.toml" file
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/package-filter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
id: package-filter
run: |
PACKAGE_DIRS=""
COMPANION_FILES="VERSION .bumpversion.cfg ict.yml"
COMPANION_FILES="VERSION .bumpversion.cfg"
# echo the base ref
base_ref=${{ github.base_ref }}
Expand Down Expand Up @@ -93,6 +93,13 @@ jobs:
fi
done
# Check if ict.yml or ict.yaml exists
if [ ! -f "${pkg_dir}/ict.yml" ] && [ ! -f "${pkg_dir}/ict.yaml" ]
then
found_all=false
echo "::warning::${pkg_dir} does not have an ict.yml or ict.yaml file"
fi
# Check that the version is a dev version
echo "Checking for dev version in $pkg_dir"
if [[ $(cat $pkg_dir/VERSION) != *"dev"* ]]
Expand Down

0 comments on commit 887eff2

Please sign in to comment.