Skip to content

Commit

Permalink
remove 3 random dependencies in partial fulfillment smoke test job
Browse files Browse the repository at this point in the history
* use current date as random seed
* upload artifact reporting which deps were removed
  • Loading branch information
wpbonelli committed Aug 14, 2023
1 parent 8b6c77d commit e62973a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,18 @@ jobs:
pip install ".[optional]"
fi
if [[ "${{ matrix.optdeps }}" == *"some"* ]]; then
pip uninstall --yes pyproj shapely vtk
deps=$(sed '/optional =/,/]/!d' pyproject.toml | sed -e '1d;$d' -e 's/\"//g' -e 's/,//g' | tr -d ' ' | cut -f 1 -d ';')
rmvd=$(echo $deps | tr ' ' '\n' | shuf --random-source <(yes date +%d.%m.%y) | head -n 3)
echo "Removing optional dependencies: $rmvd" >> removed_dependencies.txt
cat removed_dependencies.txt
pip uninstall --yes $rmvd
fi
- name: Upload removed dependencies log
uses: actions/upload-artifact@v3
with:
name: smoke-test-removed-dependencies
path: ./removed_dependencies.txt

- name: Install Modflow executables
uses: modflowpy/install-modflow-action@v1
Expand Down

0 comments on commit e62973a

Please sign in to comment.