Skip to content

Commit

Permalink
Merge pull request #27 from phoenixnap/hotfix/fix-publishing-process
Browse files Browse the repository at this point in the history
Updated to explicitly use Python3
  • Loading branch information
valerioponte authored Dec 7, 2022
2 parents 117be7d + a14be2e commit fefd5bc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/composite/lint-sdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ runs:
- name: Run pylint
shell: bash
run: |
pip install pylint
pip install --requirement ${{ inputs.package-name }}/requirements.txt
pip3 install pylint
pip3 install --requirement ${{ inputs.package-name }}/requirements.txt
pylint ${{ inputs.package-name }}/*.py -d R,C,W0511
8 changes: 4 additions & 4 deletions .github/workflows/composite/test-sdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ runs:
- name: Install package under test
shell: bash
run: |
pip install --requirement ${{ inputs.package-under-test }}/requirements.txt
pip install ${{ inputs.package-under-test }}
pip3 install --requirement ${{ inputs.package-under-test }}/requirements.txt
pip3 install ${{ inputs.package-under-test }}
- name: Run tests
shell: bash
run: |
pip install --requirement ${{ inputs.test-dir }}/requirements.txt
pip3 install --requirement ${{ inputs.test-dir }}/requirements.txt
cd ${{ inputs.test-dir }}
python ${{ inputs.test-file }}
python3 ${{ inputs.test-file }}
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ jobs:
- name: "Install Python and Dependencies"
run: |
sudo apt-get install python3-dev
pip install twine
pip install --requirement ${{ needs.check-release.outputs.package }}/requirements.txt
pip3 install twine
pip3 install --requirement ${{ needs.check-release.outputs.package }}/requirements.txt
- name: "Build Package"
run: |
cd ${{ needs.check-release.outputs.package }}
python setup.py sdist bdist_wheel
python3 setup.py sdist bdist_wheel
- name: "Publish Package"
run: |
cd ${{ needs.check-release.outputs.package }}
Expand Down

0 comments on commit fefd5bc

Please sign in to comment.