Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions build-python-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,37 @@ runs:
using: composite
steps:
- name: Build
shell: bash
shell: bash -leo pipefail {0}
run: |
python3 --version
if [[ -f setup.py ]]; then
# old style setup.py project
# (must manually install build dependencies)
echo "setup.py detected"
echo "::group::Installing build dependencies"
python3 -m pip install wheel setuptools
echo "::endgroup::"
python3 setup.py bdist_wheel sdist
else
# PEP517 project
# (must install a builder, this installs build deps for us)
echo "PEP 517 project detected"
echo "::group::Installing build dependencies"
python3 -m pip install build
echo "::endgroup::"
python3 -m build
fi

- name: Check build
shell: bash
shell: bash -leo pipefail {0}
run: |
echo "::group::Installing twine"
python3 -m pip install twine
echo "::endgroup::"
twine check dist/*

- name: Check dependencies
if: inputs.check-dependencies == 'true'
# ^ string comparison needed due to https://github.com/actions/runner/issues/2238
shell: bash
shell: bash -leo pipefail {0}
run: python3 -m pip install -e .[all] --dry-run --ignore-installed
1 change: 1 addition & 0 deletions install-cylc-components/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ runs:
# NOTE: use login shell to allow us to work with setup-micromamba
shell: bash -elo pipefail {0}
run: |
python --version
wget \
https://raw.githubusercontent.com/cylc/cylc-admin/master/docs/status/branches.json
cat branches.json
Expand Down
4 changes: 3 additions & 1 deletion towncrier-draft/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ runs:
steps:
- name: Install Towncrier if needed
shell: bash -elo pipefail {0}
run: python3 -m pip install -q towncrier
run: |
python3 -m pip install -q towncrier
towncrier --version

- name: Get package version if NodeJS project
id: node
Expand Down