-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from PelionIoT/use-git-config-action
Use git-config action from CI repo, cleanup .gitconfig
- Loading branch information
Showing
2 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,13 @@ concurrency: | |
|
||
jobs: | ||
run-pysh-check: | ||
runs-on: ubuntu-22.04 | ||
runs-on: client | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: sudo apt-get install black pycodestyle pydocstyle shellcheck python3 | ||
- 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]:" | ||
|
@@ -22,35 +24,38 @@ jobs: | |
# 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@v3 | ||
- 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" | ||
- 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@v3 | ||
- 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" | ||
- 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 | ||
|