JanneKiiskila Pull Request pysh-check #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR-check | |
run-name: ${{ github.actor }} Pull Request pysh-check | |
on: [push] | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
run-pysh-check: | |
runs-on: client | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get update && sudo apt-get install -y black pycodestyle pydocstyle shellcheck python3 | |
- run: black --version | |
# We cannot use the one in the continuous-integration-repo, | |
# because public repos cannot use actions in private repos. | |
- name: Set access token | |
run: | | |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github.com/".insteadOf "[email protected]:" | |
git config --global url."https://${{ secrets.ACCESS_TOKEN }}@github".insteadOf "https://github" | |
- run: git clone https://github.com/PelionIoT/scripts-internal | |
# Lets not run pysh-check on itself (it already has PR job for it) | |
- run: echo . >scripts-internal/.nopyshcheck | |
- run: scripts-internal/pysh-check/pysh-check.sh --workdir . | |
- name: Cleanup .gitconfig | |
if: always() | |
run: rm -f ~/.gitconfig | |
install-on-ubuntu-22-04: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install e2e-python-test-library | |
run: | | |
pip install wheel | |
python3 setup.py bdist_wheel | |
cd dist/ | |
pip install -I client_test_lib*.whl | |
- name: Cleanup .gitconfig | |
if: always() | |
run: rm -f ~/.gitconfig | |
install-on-ubuntu-20-04: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install e2e-python-test-library | |
run: | | |
pip install wheel | |
python3 setup.py bdist_wheel | |
cd dist/ | |
pip install -I client_test_lib*.whl | |
- name: Cleanup .gitconfig | |
if: always() | |
run: rm -f ~/.gitconfig | |
call-mcce-linux: | |
# Note - primary/master version of this test is in the mcce-repo. | |
uses: ./.github/workflows/MCCE-Test-Linux.yml | |
with: | |
tested_branch: ${{ github.GITHUB_REF }} | |
secrets: inherit |