Force testing #37
Workflow file for this run
This file contains 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: Conda env testing | |
on: | |
push: | |
paths: | |
- 'conda/envs/**' | |
jobs: | |
detection: | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.matrix.outputs.value }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6 | |
- name: List all changed files | |
id: changed-toml-files | |
env: | |
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
run: | | |
ALL_TOML_FILES="" | |
for file in ${ALL_CHANGED_FILES}; do | |
if [[ $file == *.toml ]]; then | |
ALL_TOML_FILES="$ALL_TOML_FILES $file" | |
fi | |
done | |
ALL_TOML_FILES=${ALL_TOML_FILES# } | |
echo "All TOML files: ${ALL_TOML_FILES}" | |
JSON_ALL_TOML=$(echo [\"$(sed 's/ /","/g' <<< ${ALL_TOML_FILES})\"]) | |
echo "All TOML files JSON: ${JSON_ALL_TOML}" | |
echo "matrix=${JSON_ALL_TOML}" >> $GITHUB_OUTPUT | |
pixi_builder: | |
name: Pixi builderfromJSONu | |
needs: detection | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
value: ${{ fromJSON(needs.detection.outputs.matrix) }} | |
steps: | |
- name: Install pixi on ${{ matrix.value }} | |
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659 # v0.8.1 | |
with: | |
locked: true | |
cache: false # 10Gb limit might be too low for caching | |
manifest-path: ${{ matrix.value }} |