Skip to content

Commit 0df45b0

Browse files
Merge pull request #102 from MetRonnie/login-shell
Use login shell for build-python-package
2 parents f2b0b62 + c4feb59 commit 0df45b0

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

build-python-package/action.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,37 @@ runs:
1313
using: composite
1414
steps:
1515
- name: Build
16-
shell: bash
16+
shell: bash -leo pipefail {0}
1717
run: |
18+
python3 --version
1819
if [[ -f setup.py ]]; then
1920
# old style setup.py project
2021
# (must manually install build dependencies)
2122
echo "setup.py detected"
23+
echo "::group::Installing build dependencies"
2224
python3 -m pip install wheel setuptools
25+
echo "::endgroup::"
2326
python3 setup.py bdist_wheel sdist
2427
else
2528
# PEP517 project
2629
# (must install a builder, this installs build deps for us)
2730
echo "PEP 517 project detected"
31+
echo "::group::Installing build dependencies"
2832
python3 -m pip install build
33+
echo "::endgroup::"
2934
python3 -m build
3035
fi
3136
3237
- name: Check build
33-
shell: bash
38+
shell: bash -leo pipefail {0}
3439
run: |
40+
echo "::group::Installing twine"
3541
python3 -m pip install twine
42+
echo "::endgroup::"
3643
twine check dist/*
3744
3845
- name: Check dependencies
3946
if: inputs.check-dependencies == 'true'
4047
# ^ string comparison needed due to https://github.com/actions/runner/issues/2238
41-
shell: bash
48+
shell: bash -leo pipefail {0}
4249
run: python3 -m pip install -e .[all] --dry-run --ignore-installed

install-cylc-components/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ runs:
8080
# NOTE: use login shell to allow us to work with setup-micromamba
8181
shell: bash -elo pipefail {0}
8282
run: |
83+
python --version
8384
wget \
8485
https://raw.githubusercontent.com/cylc/cylc-admin/master/docs/status/branches.json
8586
cat branches.json

towncrier-draft/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ runs:
66
steps:
77
- name: Install Towncrier if needed
88
shell: bash -elo pipefail {0}
9-
run: python3 -m pip install -q towncrier
9+
run: |
10+
python3 -m pip install -q towncrier
11+
towncrier --version
1012
1113
- name: Get package version if NodeJS project
1214
id: node

0 commit comments

Comments
 (0)