Skip to content

Commit 15241e3

Browse files
authored
CI: update actions version and add dependabot config (#3029)
* CI: update actions version - Update inlined code to use `$GITHUB_OUTPUT` see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * Add dependabot config to update dependencies automatically
1 parent 42d595a commit 15241e3

File tree

5 files changed

+33
-20
lines changed

5 files changed

+33
-20
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
ignore:
8+
- dependency-name: "*"
9+
update-types:
10+
- "version-update:semver-minor"
11+
- "version-update:semver-patch"

.github/workflows/cffconvert.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out a copy of the repository
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Check whether the citation metadata from CITATION.cff is valid
1717
uses: citation-file-format/[email protected]

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
python: ['3.7.14', '3.10.7']
2525
steps:
2626
- name: Checkout the repository
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828

2929
- name: Check Runner
3030
run: |
@@ -74,10 +74,10 @@ jobs:
7474

7575
steps:
7676
- name: Checkout the repository
77-
uses: actions/checkout@v2
77+
uses: actions/checkout@v3
7878

7979
- name: Setup Python ${{ matrix.python }}
80-
uses: actions/setup-python@v2
80+
uses: actions/setup-python@v4
8181
with:
8282
python-version: ${{ matrix.python }}
8383

@@ -98,13 +98,13 @@ jobs:
9898
echo "::set-output name=date::$(/bin/date -u "+%m%w%Y")"
9999
100100
- name: Setup Poetry cache
101-
uses: actions/cache@v2
101+
uses: actions/cache@v3
102102
with:
103103
path: ${{ steps.cache-vars.outputs.poetry-venv-dir }}
104104
key: ${{ runner.os }}-poetry-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
105105

106106
- name: Install and cache ffmpeg (all OS)
107-
uses: FedericoCarboni/setup-ffmpeg@v1.1.0
107+
uses: FedericoCarboni/setup-ffmpeg@v2
108108
with:
109109
token: ${{ secrets.GITHUB_TOKEN }}
110110
id: setup-ffmpeg
@@ -120,7 +120,7 @@ jobs:
120120
- name: Setup macOS cache
121121
id: cache-macos
122122
if: runner.os == 'macOS'
123-
uses: actions/cache@v2
123+
uses: actions/cache@v3
124124
with:
125125
path: ${{ github.workspace }}/macos-cache
126126
key: ${{ runner.os }}-dependencies-tinytex-${{ hashFiles('.github/manimdependency.json') }}-${{ steps.cache-vars.outputs.date }}-1
@@ -159,7 +159,7 @@ jobs:
159159
- name: Setup Windows cache
160160
id: cache-windows
161161
if: runner.os == 'Windows'
162-
uses: actions/cache@v2
162+
uses: actions/cache@v3
163163
with:
164164
path: ${{ github.workspace }}\ManimCache
165165
key: ${{ runner.os }}-dependencies-tinytex-${{ hashFiles('.github/manimdependency.json') }}-${{ steps.cache-vars.outputs.date }}-1
@@ -208,4 +208,4 @@ jobs:
208208
cd docs && pip install -r requirements.txt && poetry run make doctest O=-tskip-manim
209209
210210
- name: Upload coverage
211-
uses: codecov/codecov-action@v1
211+
uses: codecov/codecov-action@v3

.github/workflows/publish-docker.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
uses: docker/setup-qemu-action@v2
1717

1818
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v1
19+
uses: docker/setup-buildx-action@v2
2020

2121
- name: Login to DockerHub
22-
uses: docker/login-action@v1
22+
uses: docker/login-action@v2
2323
with:
2424
username: ${{ secrets.DOCKERHUB_USERNAME }}
2525
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -41,10 +41,10 @@ jobs:
4141
uses: docker/setup-qemu-action@v2
4242

4343
- name: Set up Docker Buildx
44-
uses: docker/setup-buildx-action@v1
44+
uses: docker/setup-buildx-action@v2
4545

4646
- name: Login to DockerHub
47-
uses: docker/login-action@v1
47+
uses: docker/login-action@v2
4848
with:
4949
username: ${{ secrets.DOCKERHUB_USERNAME }}
5050
password: ${{ secrets.DOCKERHUB_TOKEN }}
@@ -57,7 +57,8 @@ jobs:
5757
run: |
5858
import os
5959
ref_tag = os.getenv('tag_act').split('/')[-1]
60-
print(f"::set-output name=tag_name::{ref_tag}")
60+
with open(os.getenv('GITHUB_OUTPUT'), 'w') as f:
61+
print(f"tag_name={ref_tag}", file=f)
6162
6263
- name: Build and push
6364
uses: docker/build-push-action@v3

.github/workflows/python-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212

1313
- name: Set up Python 3.8
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
16-
python-version: 3.8
16+
python-version: 3.9
1717

1818
- name: Install dependencies
1919
run: python -m pip install --upgrade poetry
@@ -30,7 +30,7 @@ jobs:
3030
poetry build
3131
3232
- name: Store artifacts
33-
uses: actions/upload-artifact@v2
33+
uses: actions/upload-artifact@v3
3434
with:
3535
path: dist/*.tar.gz
3636
name: manim.tar.gz
@@ -54,8 +54,9 @@ jobs:
5454
url = f"https://api.github.com/repos/ManimCommunity/manim/releases/tags/{ref_tag}"
5555
c = requests.get(url,headers=headers)
5656
upload_url=c.json()['upload_url']
57-
print(f"::set-output name=upload_url::{upload_url}")
58-
print(f"::set-output name=tag_name::{ref_tag[1:]}")
57+
with open(os.getenv('GITHUB_OUTPUT'), 'w') as f:
58+
print(f"upload_url={upload_url}", file=f)
59+
print(f"tag_name={ref_tag[1:]}", file=f)
5960
6061
- name: Upload Release Asset
6162
id: upload-release

0 commit comments

Comments
 (0)