Skip to content

Commit 8c0e4d7

Browse files
authored
bindep.txt should not be mandatory (#82)
1 parent 597c834 commit 8c0e4d7

File tree

1 file changed

+14
-0
lines changed
  • .github/actions/build_install_collection

1 file changed

+14
-0
lines changed

.github/actions/build_install_collection/action.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,33 @@ runs:
2323
shell: bash
2424
working-directory: ${{ inputs.source_path }}
2525

26+
- name: check if bindep.txt exists
27+
id: bindep_check
28+
shell: bash
29+
run: |
30+
if test -f "bindep.txt"; then
31+
echo "file_exists=true" >> $GITHUB_OUTPUT
32+
else
33+
echo "file_exists=false" >> $GITHUB_OUTPUT
34+
fi
35+
working-directory: ${{ inputs.source_path }}
36+
2637
- name: Install bindep from pypi
2738
run: sudo python3 -m pip install bindep
2839
shell: bash
40+
if: steps.bindep_check.outputs.file_exists == 'true'
2941

3042
- name: Install missing system packages using bindep.txt
3143
run: bindep test | tail -n +2 | xargs sudo apt-get -o Debug::pkgProblemResolver=true -o Debug::Acquire::http=true install -y || exit 0
3244
shell: bash
3345
working-directory: ${{ inputs.source_path }}
46+
if: steps.bindep_check.outputs.file_exists == 'true'
3447

3548
- name: Check for missing system packages using bindep.txt
3649
run: bindep test
3750
shell: bash
3851
working-directory: ${{ inputs.source_path }}
52+
if: steps.bindep_check.outputs.file_exists == 'true'
3953

4054
- name: Install collection python requirements
4155
if: ${{ inputs.install_python_dependencies == 'true' }}

0 commit comments

Comments
 (0)