Skip to content

Commit

Permalink
Upgrade action version to solve deprecation errors (cyberbotics#6159)
Browse files Browse the repository at this point in the history
* Upgrade action version to solve deprecation errors

* Updagre version of actions/checkout

* Update actions

* Debug

* Debug

* Debug

* Debug

* Debug

* Remove debug instructions

* Fix step output
  • Loading branch information
stefaniapedrazzi authored May 31, 2023
1 parent 5a5c0e8 commit bdae0ae
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test_suite_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:
sudo python -m pip install requests PyGithub
pip install pyopenssl --upgrade
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test suite') || contains(github.event.pull_request.labels.*.name, 'test ros') || contains(github.event.pull_request.labels.*.name, 'test worlds') }}
with:
name: build-${{ matrix.os }}
path: |
distribution/*.tar.bz2
distribution/*.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ !contains(github.event.pull_request.labels.*.name, 'test suite') && !contains(github.event.pull_request.labels.*.name, 'test ros') && !contains(github.event.pull_request.labels.*.name, 'test worlds') }}
with:
name: build-${{ matrix.os }}
Expand All @@ -100,7 +100,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-ubuntu-20.04
path: artifact
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Install Webots Dependencies
run: sudo scripts/install/linux_test_dependencies.sh --exclude-ros
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Test Suite
Expand All @@ -121,7 +121,7 @@ jobs:
export TESTS_HOME=$PWD # required by cache group in the test suite
export BRANCH_HASH=$(git log -1 --format='%H')
xvfb-run --auto-servernum python tests/test_suite.py
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: failure()
with:
name: test-results-${{ matrix.os }}
Expand All @@ -144,7 +144,7 @@ jobs:
with:
submodules: true
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}
path: artifact
Expand All @@ -153,7 +153,7 @@ jobs:
- name: Install Webots Dependencies
run: sudo scripts/install/linux_test_dependencies.sh
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Run Test
Expand All @@ -171,7 +171,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-ubuntu-20.04
path: artifact
Expand All @@ -185,7 +185,7 @@ jobs:
mkdir -p ~/.cache/Cyberbotics/Webots/
unzip -q artifact/assets-*.zip -d ~/.cache/Cyberbotics/Webots/assets
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Update World, Check Warnings and Validate Cache
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test_suite_linux_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
sudo python -m pip install requests PyGithub
pip install pyopenssl --upgrade
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test suite') || contains(github.event.pull_request.labels.*.name, 'test ros') || contains(github.event.pull_request.labels.*.name, 'test worlds') }}
with:
name: build-${{ matrix.os }}
path: |
distribution/*.tar.bz2
distribution/*.zip
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ !contains(github.event.pull_request.labels.*.name, 'test suite') && !contains(github.event.pull_request.labels.*.name, 'test ros') && !contains(github.event.pull_request.labels.*.name, 'test worlds') }}
with:
name: build-${{ matrix.os }}
Expand All @@ -98,7 +98,7 @@ jobs:
with:
ref: develop
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-ubuntu-20.04
path: artifact
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
submodules: true
ref: develop
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}
path: artifact
Expand All @@ -164,7 +164,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-ubuntu-20.04
path: artifact
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_suite_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
sudo python -m pip install requests PyGithub
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test suite') || contains(github.event.pull_request.labels.*.name, 'test distribution') }}
with:
name: build-${{ matrix.os }}
Expand All @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}
path: artifact
Expand All @@ -83,7 +83,7 @@ jobs:
sudo cp -R /Volumes/Webots/Webots.app /Applications
hdiutil unmount /Volumes/Webots
- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Test
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_suite_mac_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
sudo python -m pip install requests PyGithub
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test suite') || contains(github.event.pull_request.labels.*.name, 'test distribution') }}
with:
name: build-${{ matrix.os }}
Expand All @@ -71,7 +71,7 @@ jobs:
with:
ref: develop
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build-${{ matrix.os }}
path: artifact
Expand All @@ -81,7 +81,7 @@ jobs:
sudo cp -R /Volumes/Webots/Webots.app /Applications
hdiutil unmount /Volumes/Webots
- name: Set up Python 3.11
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_suite_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
run: |
python -m pip install requests PyGithub
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test distribution') }}
with:
name: build-${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_suite_windows_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: |
python -m pip install requests PyGithub
scripts/packaging/publish_release.py --key=${{ secrets.GITHUB_TOKEN }} --repo=${{ github.repository }} --branch=${{ github.ref }} --commit=$(git log -1 --format='%H') --tag=${{ github.ref }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(github.event.pull_request.labels.*.name, 'test distribution') }}
with:
name: build-${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.3.0
uses: fkirc/skip-duplicate-actions@v5.3.0
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
paths: '["docs/**"]'
Expand All @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Tests
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.3.0
uses: fkirc/skip-duplicate-actions@v5.3.0
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
paths_ignore: '["docs/**"]'
Expand All @@ -49,18 +49,18 @@ jobs:
- name: OS check
if: (matrix.os == 'ubuntu-22.04' && matrix.python == '3.9') || github.event_name == 'schedule' || github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'test sources')
run: |
echo "::set-output name=job_needed::true"
echo "job_needed=true" >> "$GITHUB_OUTPUT"
id: os_check
- name: Set git to use LF
if: matrix.os == 'windows-2019'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: steps.os_check.outputs.job_needed == 'true'
- name: Set up Python ${{ matrix.python }}
if: steps.os_check.outputs.job_needed == 'true'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Tests
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests_sources_with_latest_cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v3.3.0
uses: fkirc/skip-duplicate-actions@v5.3.0
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
paths_ignore: '["docs/**"]'
Expand All @@ -45,18 +45,18 @@ jobs:
- name: OS check
if: (matrix.os == 'ubuntu-22.04' && matrix.python == '3.9') || github.event_name == 'schedule' || github.event.pull_request.draft == false || contains(github.event.pull_request.labels.*.name, 'test sources')
run: |
echo "::set-output name=job_needed::true"
echo "job_needed=true" >> "$GITHUB_OUTPUT"
id: os_check
- name: Set git to use LF
if: matrix.os == 'windows-2019'
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: steps.os_check.outputs.job_needed == 'true'
- name: Set up Python ${{ matrix.python }}
if: steps.os_check.outputs.job_needed == 'true'
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Tests
Expand Down

0 comments on commit bdae0ae

Please sign in to comment.