Skip to content

Commit f6486fc

Browse files
1 parent 4f2cfd1 commit f6486fc

File tree

9 files changed

+41
-35
lines changed

9 files changed

+41
-35
lines changed

.github/workflows/colab.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
matrix:
2828
notebook_path: [Colab_UnityEnvironment_1_Run.ipynb, Colab_UnityEnvironment_2_Train.ipynb, Colab_UnityEnvironment_3_SideChannel.ipynb]
2929
steps:
30-
- uses: actions/checkout@v2
30+
- uses: actions/checkout@v4
3131
- name: Set up Python
32-
uses: actions/setup-python@v2
32+
uses: actions/setup-python@v5
3333
with:
3434
python-version: 3.10.12
35-
- uses: actions/setup-dotnet@v1
35+
- uses: actions/setup-dotnet@v4
3636
with:
3737
dotnet-version: '6.0.x'
3838
- name: Cache pip
39-
uses: actions/cache@v2
39+
uses: actions/cache@v4
4040
with:
4141
# This path is specific to Ubuntu
4242
path: ~/.cache/pip
@@ -56,9 +56,9 @@ jobs:
5656
- name: Execute notebook
5757
run: jupyter nbconvert --to notebook --execute --log-level=DEBUG --ExecutePreprocessor.kernel_name=python3 --output output-${{ matrix.notebook_path }} colab/${{ matrix.notebook_path }}
5858
- name: Upload colab results
59-
uses: actions/upload-artifact@v2
59+
uses: actions/upload-artifact@v4
6060
with:
61-
name: artifacts
61+
name: artifacts-${{ matrix.notebook_path }}
6262
path: |
6363
colab/output-${{ matrix.notebook_path }}
6464
# Use always() to always run this step to publish execution results when there are failures

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
issues: write
1313
pull-requests: write
1414
steps:
15-
- uses: actions/stale@v5
15+
- uses: actions/stale@v9
1616
with:
1717
days-before-issue-stale: 30
1818
days-before-issue-close: 14

.github/workflows/nightly.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ jobs:
99
markdown-link-check-full:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
14-
- uses: actions/setup-node@v2
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: 3.10.12
16+
- uses: actions/setup-node@v4
1517
with:
1618
node-version: '12'
1719
- name: Install manual dependencies
@@ -26,7 +28,7 @@ jobs:
2628
runs-on: ubuntu-latest
2729
# TODO: Re-use pytest workflow once https://github.com/github/roadmap/issues/257 is done.
2830
# steps:
29-
# - uses: actions/checkout@v2
31+
# - uses: actions/checkout@v4
3032
# - uses: ./.github/workflows/pytest.yml
3133
# with:
3234
# # Run all tests.
@@ -42,13 +44,13 @@ jobs:
4244
- python-version: 3.10.12
4345
pip_constraints: test_constraints_version.txt
4446
steps:
45-
- uses: actions/checkout@v2
47+
- uses: actions/checkout@v4
4648
- name: Set up Python
47-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v5
4850
with:
4951
python-version: ${{ matrix.python-version }}
5052
- name: Cache pip
51-
uses: actions/cache@v2
53+
uses: actions/cache@v4
5254
with:
5355
# This path is specific to Ubuntu
5456
path: ~/.cache/pip
@@ -77,7 +79,7 @@ jobs:
7779
--cov-report=html --junitxml=junit/test-results-${{ matrix.python-version }}.xml \
7880
-p no:warnings -v -n 8
7981
- name: Upload pytest test results
80-
uses: actions/upload-artifact@v2
82+
uses: actions/upload-artifact@v4
8183
with:
8284
name: artifacts-${{ matrix.python-version }}
8385
path: |

.github/workflows/pre-commit.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
pre-commit:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
1818
with:
1919
python-version: 3.10.x
2020
- uses: ruby/setup-ruby@v1
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
ruby-version: '2.7'
2525
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26-
- uses: actions/setup-dotnet@v3
26+
- uses: actions/setup-dotnet@v4
2727
with:
2828
dotnet-version: '7.0.100'
2929
- name: Install manual dependencies
@@ -36,9 +36,11 @@ jobs:
3636
markdown-link-check:
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v2
40-
- uses: actions/setup-python@v2
41-
- uses: actions/setup-node@v2
39+
- uses: actions/checkout@v4
40+
- uses: actions/setup-python@v5
41+
with:
42+
python-version: 3.10.x
43+
- uses: actions/setup-node@v4
4244
with:
4345
node-version: '12'
4446
- name: Install manual dependencies
@@ -53,6 +55,8 @@ jobs:
5355
validate-meta-files:
5456
runs-on: ubuntu-latest
5557
steps:
56-
- uses: actions/checkout@v2
57-
- uses: actions/setup-python@v2
58+
- uses: actions/checkout@v4
59+
- uses: actions/setup-python@v5
60+
with:
61+
python-version: 3.10.x
5862
- run: python utils/validate_meta_files.py

.github/workflows/publish_docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
1313
with:
1414
token: ${{ secrets.PUBLIC_GH_TOKEN }}
1515
- name: Setup Python 3.10
16-
uses: actions/setup-python@v2
16+
uses: actions/setup-python@v5
1717
with:
1818
python-version: 3.10
1919
- name: Publish docs

.github/workflows/publish_pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@main
2121
- name: Set up Python 3.10
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: 3.10.x
2525
- name: Install dependencies

.github/workflows/publish_pypi_python_api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
package-path: [ml-agents-envs]
1818

1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: Set up Python 3.10
22-
uses: actions/setup-python@v2
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: 3.10.x
2525
- name: Install dependencies

.github/workflows/pytest.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
- python-version: 3.10.12
4343
pip_constraints: test_constraints_version.txt
4444
steps:
45-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v4
4646
- name: Set up Python
47-
uses: actions/setup-python@v2
47+
uses: actions/setup-python@v5
4848
with:
4949
python-version: ${{ matrix.python-version }}
5050
- name: Cache pip
51-
uses: actions/cache@v2
51+
uses: actions/cache@v4
5252
with:
5353
# This path is specific to Ubuntu
5454
path: ~/.cache/pip
@@ -75,17 +75,17 @@ jobs:
7575
id: pytest_marker
7676
run: |
7777
if [ "${{ github.event.inputs.pytest_markers }}" != "" ]; then
78-
echo "::set-output name=markers::${{ github.event.inputs.pytest_markers }}"
78+
echo "markers=${{ github.event.inputs.pytest_markers }}" >> $GITHUB_OUTPUT
7979
else
80-
echo "::set-output name=markers::not slow"
80+
echo "markers=not slow" >> $GITHUB_OUTPUT
8181
fi
8282
- name: Run pytest
8383
run: |
8484
pytest --cov=ml-agents --cov=ml-agents-envs \
8585
--cov-report=html --junitxml=junit/test-results-${{ matrix.python-version }}.xml \
8686
-p no:warnings -v -m "${{ steps.pytest_marker.outputs.markers }}" -n 8
8787
- name: Upload pytest test results
88-
uses: actions/upload-artifact@v2
88+
uses: actions/upload-artifact@v4
8989
with:
9090
name: artifacts-${{ matrix.python-version }}
9191
path: |

.github/workflows/validate_catalog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: [ubuntu-latest]
1515
steps:
1616
- id: 'Checkout'
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- id: 'Validate'
2020
uses: 'RoadieHQ/[email protected]'

0 commit comments

Comments
 (0)