Skip to content

Commit d7188e8

Browse files
authored
Simplify Python build command in CI workflow
last try for now!
1 parent 42b38c1 commit d7188e8

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/g2main-test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ jobs:
5959
else
6060
echo "Unix build"
6161
#conda build GSAS2main --output-folder ~/build # use below due to patch above
62-
python - <<'PY'
63-
import os
64-
import conda_build.api
65-
out = os.path.expanduser("~/build")
66-
conda_build.api.build("GSAS2main", output_folder=out)
67-
PY
62+
python -c "import os, conda_build.api; conda_build.api.build('GSAS2main', output_folder=os.path.expanduser('~/build'))"
6863
#conda build GSAS2main --output-folder ~/build --package-format .conda
6964
anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload ~/build/*/*.conda --user briantoby --force
7065
fi

0 commit comments

Comments
 (0)