Skip to content

Commit

Permalink
Upgrade git up actions versions to fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-mccarthy-unity committed Mar 7, 2024
1 parent 4f2cfd1 commit da404bb
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 31 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/colab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ 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
with:
python-version: 3.10.12
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Install manual dependencies
Expand All @@ -26,7 +28,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.
Expand All @@ -42,13 +44,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
Expand Down Expand Up @@ -77,7 +79,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: |
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -36,9 +36,11 @@ 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
with:
python-version: 3.10.x
- uses: actions/setup-node@v4
with:
node-version: '12'
- name: Install manual dependencies
Expand All @@ -53,6 +55,8 @@ 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
with:
python-version: 3.10.x
- run: python utils/validate_meta_files.py
4 changes: 2 additions & 2 deletions .github/workflows/publish_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_pypi_python_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate_catalog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- id: 'Checkout'
uses: actions/checkout@v2
uses: actions/checkout@v4

- id: 'Validate'
uses: 'RoadieHQ/[email protected]'
Expand Down

0 comments on commit da404bb

Please sign in to comment.