Skip to content

Commit 3b9fd74

Browse files
authored
Merge pull request #8 from jerabekjiri/fix/build_publish
print installed packages
2 parents 14c8014 + 829bcc8 commit 3b9fd74

File tree

1 file changed

+49
-28
lines changed

1 file changed

+49
-28
lines changed

.github/workflows/build_publish.yml

Lines changed: 49 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,59 @@ jobs:
3737
- name: Install LDAP requirements
3838
run: sudo apt-get install -y libsasl2-dev libldap2-dev libssl-dev build-essential gettext python-setuptools
3939

40-
- name: Upgrade pip
41-
run: pip install pip --upgrade
40+
- name: print all installed requirements
41+
run: sudo apt list --installed
4242

43-
- name: Install galaxy_ng editable
44-
run: pip install -e .
43+
- name: print libsasl2-dev
44+
run: sudo apt list --installed | grep libsasl2-dev
4545

46-
# set variable for the next step, so only versions higher than 4.4 gets translated
47-
# 4.2 and 4.3 don't support translations
48-
- name: Check galaxy_ng version for translations
49-
shell: bash
50-
id: version_check
51-
run: |
52-
is_translatable=$(python -c 'from pkg_resources import parse_version; cmp_res = parse_version("${{ env.galaxy_ng_version }}") >= parse_version("4.4"); print(cmp_res)')
53-
echo "is_translatable=$is_translatable" >> $GITHUB_OUTPUT
46+
- name: print libldap2-dev
47+
run: sudo apt list --installed | grep libldap2-dev
5448

55-
- name: Build API translations
56-
shell: bash
57-
run: "django-admin compilemessages"
58-
if: steps.version_check.outputs.is_translatable == 'True'
49+
- name: print libssl-dev
50+
run: sudo apt list --installed | grep libssl-dev
5951

60-
- name: Check if UI has corresponding tag
61-
shell: bash
62-
run: |
63-
status_code=$(curl -LI https://api.github.com/repos/ansible/ansible-hub-ui/releases/tags/${{ env.galaxy_ng_version }} -o /dev/null -w '%{http_code}\n' -s)
64-
if [ $status_code == "404" ]
65-
then
66-
echo "::error::Corresponding tag ${{ env.galaxy_ng_version }} for ansible-hub-ui not found."
67-
exit 1
68-
fi
69-
70-
- name: Build galaxy_ng python packages
71-
run: "python3 setup.py sdist bdist_wheel"
52+
- name: print build-essential
53+
run: sudo apt list --installed | grep build-essential
54+
55+
- name: print gettext
56+
run: sudo apt list --installed | grep gettext
57+
58+
- name: print python-setuptools
59+
run: sudo apt list --installed | grep python-setuptools
60+
61+
# - name: Upgrade pip
62+
# run: pip install pip --upgrade
63+
64+
# - name: Install galaxy_ng editable
65+
# run: pip install -e .
66+
67+
# # set variable for the next step, so only versions higher than 4.4 gets translated
68+
# # 4.2 and 4.3 don't support translations
69+
# - name: Check galaxy_ng version for translations
70+
# shell: bash
71+
# id: version_check
72+
# run: |
73+
# is_translatable=$(python -c 'from pkg_resources import parse_version; cmp_res = parse_version("${{ env.galaxy_ng_version }}") >= parse_version("4.4"); print(cmp_res)')
74+
# echo "is_translatable=$is_translatable" >> $GITHUB_OUTPUT
75+
76+
# - name: Build API translations
77+
# shell: bash
78+
# run: "django-admin compilemessages"
79+
# if: steps.version_check.outputs.is_translatable == 'True'
80+
81+
# - name: Check if UI has corresponding tag
82+
# shell: bash
83+
# run: |
84+
# status_code=$(curl -LI https://api.github.com/repos/ansible/ansible-hub-ui/releases/tags/${{ env.galaxy_ng_version }} -o /dev/null -w '%{http_code}\n' -s)
85+
# if [ $status_code == "404" ]
86+
# then
87+
# echo "::error::Corresponding tag ${{ env.galaxy_ng_version }} for ansible-hub-ui not found."
88+
# exit 1
89+
# fi
90+
91+
# - name: Build galaxy_ng python packages
92+
# run: "python3 setup.py sdist bdist_wheel"
7293

7394
# - name: Install twine
7495
# run: "pip install twine"

0 commit comments

Comments
 (0)