File tree Expand file tree Collapse file tree 4 files changed +25
-31
lines changed Expand file tree Collapse file tree 4 files changed +25
-31
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - uses : actions/checkout@v4
13
13
14
14
- name : Set up Python 3.12
15
- uses : actions/setup-python@v4
15
+ id : setup-python
16
+ uses : actions/setup-python@v5
16
17
with :
17
18
python-version : 3.12
18
19
19
- - name : Get full Python version
20
- id : full-python-version
21
- run : echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
22
-
23
20
- name : Set up poetry
24
- uses : Gr1N/setup-poetry@v8
21
+ uses : Gr1N/setup-poetry@v9
25
22
26
23
- name : Configure poetry
27
24
run : poetry config virtualenvs.in-project true
28
25
29
26
- name : Set up cache
30
- uses : actions/cache@v3
27
+ uses : actions/cache@v4
31
28
id : cache
32
29
with :
33
30
path : .venv
34
- key : venv-${{ steps.full -python-version .outputs.version }}-${{ hashFiles('**/poetry.lock') }}
31
+ key : venv-${{ steps.setup -python.outputs.python- version }}-${{ hashFiles('**/poetry.lock') }}
35
32
36
33
- name : Ensure cache is healthy
37
34
if : steps.cache.outputs.cache-hit == 'true'
Original file line number Diff line number Diff line change @@ -17,32 +17,32 @@ jobs:
17
17
docker :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v2
20
+ - uses : actions/checkout@v4
21
21
22
22
- name : Docker meta
23
23
id : meta
24
- uses : docker/metadata-action@v4
24
+ uses : docker/metadata-action@v5
25
25
with :
26
26
images : |
27
27
pythonopenapi/openapi-spec-validator
28
28
tags : |
29
29
type=semver,pattern={{version}},value=${{ github.event.inputs.version }}
30
30
31
31
- name : Set up QEMU
32
- uses : docker/setup-qemu-action@v2
32
+ uses : docker/setup-qemu-action@v3
33
33
34
34
- name : Set up Docker Buildx
35
- uses : docker/setup-buildx-action@v2
35
+ uses : docker/setup-buildx-action@v3
36
36
37
37
- name : Login to DockerHub
38
38
if : github.event.inputs.push
39
- uses : docker/login-action@v2
39
+ uses : docker/login-action@v3
40
40
with :
41
41
username : ${{ secrets.DOCKERHUB_USERNAME }}
42
42
password : ${{ secrets.DOCKERHUB_TOKEN }}
43
43
44
44
- name : Build and push
45
- uses : docker/build-push-action@v4
45
+ uses : docker/build-push-action@v6
46
46
with :
47
47
context : .
48
48
platforms : linux/amd64,linux/arm64
Original file line number Diff line number Diff line change @@ -13,32 +13,32 @@ jobs:
13
13
docker :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
18
18
- name : Docker meta
19
19
id : meta
20
- uses : docker/metadata-action@v4
20
+ uses : docker/metadata-action@v5
21
21
with :
22
22
images : |
23
23
pythonopenapi/openapi-spec-validator
24
24
tags : |
25
25
type=semver,pattern={{version}}
26
26
27
27
- name : Set up QEMU
28
- uses : docker/setup-qemu-action@v2
28
+ uses : docker/setup-qemu-action@v3
29
29
30
30
- name : Set up Docker Buildx
31
- uses : docker/setup-buildx-action@v2
31
+ uses : docker/setup-buildx-action@v3
32
32
33
33
- name : Login to DockerHub
34
34
if : github.event_name != 'pull_request'
35
- uses : docker/login-action@v2
35
+ uses : docker/login-action@v3
36
36
with :
37
37
username : ${{ secrets.DOCKERHUB_USERNAME }}
38
38
password : ${{ secrets.DOCKERHUB_TOKEN }}
39
39
40
40
- name : Build and push
41
- uses : docker/build-push-action@v4
41
+ uses : docker/build-push-action@v6
42
42
with :
43
43
context : .
44
44
platforms : linux/amd64,linux/arm64
Original file line number Diff line number Diff line change @@ -18,29 +18,26 @@ jobs:
18
18
os : [windows-latest, ubuntu-latest]
19
19
fail-fast : false
20
20
steps :
21
- - uses : actions/checkout@v3
21
+ - uses : actions/checkout@v4
22
22
23
23
- name : Set up Python ${{ matrix.python-version }}
24
- uses : actions/setup-python@v4
24
+ id : setup-python
25
+ uses : actions/setup-python@v5
25
26
with :
26
27
python-version : ${{ matrix.python-version }}
27
28
28
- - name : Get full Python version
29
- id : full-python-version
30
- run : echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
31
-
32
29
- name : Set up poetry
33
- uses : Gr1N/setup-poetry@v8
30
+ uses : Gr1N/setup-poetry@v9
34
31
35
32
- name : Configure poetry
36
33
run : poetry config virtualenvs.in-project true
37
34
38
35
- name : Set up cache
39
- uses : actions/cache@v3
36
+ uses : actions/cache@v4
40
37
id : cache
41
38
with :
42
39
path : .venv
43
- key : venv-${{ github.event_name }}-${{ runner.os }}-${{ steps.full -python-version .outputs.version }}-${{ hashFiles('**/poetry.lock') }}
40
+ key : venv-${{ github.event_name }}-${{ runner.os }}-${{ steps.setup -python.outputs.python- version }}-${{ hashFiles('**/poetry.lock') }}
44
41
45
42
- name : Ensure cache is healthy
46
43
if : steps.cache.outputs.cache-hit == 'true'
62
59
run : poetry run deptry .
63
60
64
61
- name : Upload coverage
65
- uses : codecov/codecov-action@v3
62
+ uses : codecov/codecov-action@v5
You can’t perform that action at this time.
0 commit comments