From 9cad27c2bdf5a65a5a8240f4b64158c209b1bc08 Mon Sep 17 00:00:00 2001 From: alex-mccarthy-unity Date: Thu, 7 Mar 2024 15:13:01 +0100 Subject: [PATCH] Upgrade git up actions versions to fix deprecation warnings Sample deprecation warnings this fixes: https://github.com/Unity-Technologies/ml-agents/actions/runs/8189380401 https://github.com/Unity-Technologies/ml-agents/actions/runs/8189380425 https://github.com/Unity-Technologies/ml-agents/actions/runs/8189380389 --- .github/workflows/colab.yml | 10 +++++----- .github/workflows/nightly.yml | 16 ++++++++-------- .github/workflows/pre-commit.yml | 16 ++++++++-------- .github/workflows/publish_docs.yaml | 4 ++-- .github/workflows/publish_pypi.yaml | 2 +- .github/workflows/publish_pypi_python_api.yaml | 4 ++-- .github/workflows/pytest.yml | 8 ++++---- .github/workflows/validate_catalog.yaml | 2 +- 8 files changed, 31 insertions(+), 31 deletions(-) diff --git a/.github/workflows/colab.yml b/.github/workflows/colab.yml index eb68e39ec2d..500cc73e335 100644 --- a/.github/workflows/colab.yml +++ b/.github/workflows/colab.yml @@ -27,16 +27,16 @@ jobs: matrix: notebook_path: [Colab_UnityEnvironment_1_Run.ipynb, Colab_UnityEnvironment_2_Train.ipynb, Colab_UnityEnvironment_3_SideChannel.ipynb] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.10.12 - - uses: actions/setup-dotnet@v1 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '6.0.x' - name: Cache pip - uses: actions/cache@v2 + uses: actions/cache@v4 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -56,7 +56,7 @@ jobs: - name: Execute notebook run: jupyter nbconvert --to notebook --execute --log-level=DEBUG --ExecutePreprocessor.kernel_name=python3 --output output-${{ matrix.notebook_path }} colab/${{ matrix.notebook_path }} - name: Upload colab results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifacts path: | diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 74910cb2ebb..57c91a0991b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,9 +9,9 @@ jobs: markdown-link-check-full: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: actions/setup-node@v4 with: node-version: '12' - name: Install manual dependencies @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest # TODO: Re-use pytest workflow once https://github.com/github/roadmap/issues/257 is done. # steps: -# - uses: actions/checkout@v2 +# - uses: actions/checkout@v4 # - uses: ./.github/workflows/pytest.yml # with: # # Run all tests. @@ -42,13 +42,13 @@ jobs: - python-version: 3.10.12 pip_constraints: test_constraints_version.txt steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip - uses: actions/cache@v2 + uses: actions/cache@v4 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -77,7 +77,7 @@ jobs: --cov-report=html --junitxml=junit/test-results-${{ matrix.python-version }}.xml \ -p no:warnings -v -n 8 - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifacts-${{ matrix.python-version }} path: | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 75232f1bb49..c44a993b788 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -13,8 +13,8 @@ jobs: pre-commit: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.10.x - uses: ruby/setup-ruby@v1 @@ -23,7 +23,7 @@ jobs: with: ruby-version: '2.7' bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v4 with: dotnet-version: '7.0.100' - name: Install manual dependencies @@ -36,9 +36,9 @@ jobs: markdown-link-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: actions/setup-node@v4 with: node-version: '12' - name: Install manual dependencies @@ -53,6 +53,6 @@ jobs: validate-meta-files: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 - run: python utils/validate_meta_files.py diff --git a/.github/workflows/publish_docs.yaml b/.github/workflows/publish_docs.yaml index a4a42800145..ac4162337a3 100644 --- a/.github/workflows/publish_docs.yaml +++ b/.github/workflows/publish_docs.yaml @@ -9,11 +9,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: token: ${{ secrets.PUBLIC_GH_TOKEN }} - name: Setup Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.10 - name: Publish docs diff --git a/.github/workflows/publish_pypi.yaml b/.github/workflows/publish_pypi.yaml index ffa4ed9a3b4..a6f5f064552 100644 --- a/.github/workflows/publish_pypi.yaml +++ b/.github/workflows/publish_pypi.yaml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@main - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.10.x - name: Install dependencies diff --git a/.github/workflows/publish_pypi_python_api.yaml b/.github/workflows/publish_pypi_python_api.yaml index 72b5c36196d..5cc26412892 100644 --- a/.github/workflows/publish_pypi_python_api.yaml +++ b/.github/workflows/publish_pypi_python_api.yaml @@ -17,9 +17,9 @@ jobs: package-path: [ml-agents-envs] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.10.x - name: Install dependencies diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 7b7a8fc5fd6..450529a6068 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -42,13 +42,13 @@ jobs: - python-version: 3.10.12 pip_constraints: test_constraints_version.txt steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Cache pip - uses: actions/cache@v2 + uses: actions/cache@v4 with: # This path is specific to Ubuntu path: ~/.cache/pip @@ -85,7 +85,7 @@ jobs: --cov-report=html --junitxml=junit/test-results-${{ matrix.python-version }}.xml \ -p no:warnings -v -m "${{ steps.pytest_marker.outputs.markers }}" -n 8 - name: Upload pytest test results - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: artifacts-${{ matrix.python-version }} path: | diff --git a/.github/workflows/validate_catalog.yaml b/.github/workflows/validate_catalog.yaml index 4166fd06c89..b584d022930 100644 --- a/.github/workflows/validate_catalog.yaml +++ b/.github/workflows/validate_catalog.yaml @@ -14,7 +14,7 @@ jobs: runs-on: [ubuntu-latest] steps: - id: 'Checkout' - uses: actions/checkout@v2 + uses: actions/checkout@v4 - id: 'Validate' uses: 'RoadieHQ/backstage-entity-validator@v0.3.2'