Skip to content

Commit 1c0bfaa

Browse files
authored
Merge pull request #414 from kurtmckee/fix-ci-warnings
Fix CI warnings and update GitHub action versions
2 parents 9acff2e + 97e44a9 commit 1c0bfaa

File tree

4 files changed

+25
-31
lines changed

4 files changed

+25
-31
lines changed

.github/workflows/build-docs.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,26 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

1414
- name: Set up Python 3.12
15-
uses: actions/setup-python@v4
15+
id: setup-python
16+
uses: actions/setup-python@v5
1617
with:
1718
python-version: 3.12
1819

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-
2320
- name: Set up poetry
24-
uses: Gr1N/setup-poetry@v8
21+
uses: Gr1N/setup-poetry@v9
2522

2623
- name: Configure poetry
2724
run: poetry config virtualenvs.in-project true
2825

2926
- name: Set up cache
30-
uses: actions/cache@v3
27+
uses: actions/cache@v4
3128
id: cache
3229
with:
3330
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') }}
3532

3633
- name: Ensure cache is healthy
3734
if: steps.cache.outputs.cache-hit == 'true'

.github/workflows/docker-publish-manual.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,32 @@ jobs:
1717
docker:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121

2222
- name: Docker meta
2323
id: meta
24-
uses: docker/metadata-action@v4
24+
uses: docker/metadata-action@v5
2525
with:
2626
images: |
2727
pythonopenapi/openapi-spec-validator
2828
tags: |
2929
type=semver,pattern={{version}},value=${{ github.event.inputs.version }}
3030
3131
- name: Set up QEMU
32-
uses: docker/setup-qemu-action@v2
32+
uses: docker/setup-qemu-action@v3
3333

3434
- name: Set up Docker Buildx
35-
uses: docker/setup-buildx-action@v2
35+
uses: docker/setup-buildx-action@v3
3636

3737
- name: Login to DockerHub
3838
if: github.event.inputs.push
39-
uses: docker/login-action@v2
39+
uses: docker/login-action@v3
4040
with:
4141
username: ${{ secrets.DOCKERHUB_USERNAME }}
4242
password: ${{ secrets.DOCKERHUB_TOKEN }}
4343

4444
- name: Build and push
45-
uses: docker/build-push-action@v4
45+
uses: docker/build-push-action@v6
4646
with:
4747
context: .
4848
platforms: linux/amd64,linux/arm64

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@ jobs:
1313
docker:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

1818
- name: Docker meta
1919
id: meta
20-
uses: docker/metadata-action@v4
20+
uses: docker/metadata-action@v5
2121
with:
2222
images: |
2323
pythonopenapi/openapi-spec-validator
2424
tags: |
2525
type=semver,pattern={{version}}
2626
2727
- name: Set up QEMU
28-
uses: docker/setup-qemu-action@v2
28+
uses: docker/setup-qemu-action@v3
2929

3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v2
31+
uses: docker/setup-buildx-action@v3
3232

3333
- name: Login to DockerHub
3434
if: github.event_name != 'pull_request'
35-
uses: docker/login-action@v2
35+
uses: docker/login-action@v3
3636
with:
3737
username: ${{ secrets.DOCKERHUB_USERNAME }}
3838
password: ${{ secrets.DOCKERHUB_TOKEN }}
3939

4040
- name: Build and push
41-
uses: docker/build-push-action@v4
41+
uses: docker/build-push-action@v6
4242
with:
4343
context: .
4444
platforms: linux/amd64,linux/arm64

.github/workflows/python-test.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,26 @@ jobs:
1818
os: [windows-latest, ubuntu-latest]
1919
fail-fast: false
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v4
24+
id: setup-python
25+
uses: actions/setup-python@v5
2526
with:
2627
python-version: ${{ matrix.python-version }}
2728

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-
3229
- name: Set up poetry
33-
uses: Gr1N/setup-poetry@v8
30+
uses: Gr1N/setup-poetry@v9
3431

3532
- name: Configure poetry
3633
run: poetry config virtualenvs.in-project true
3734

3835
- name: Set up cache
39-
uses: actions/cache@v3
36+
uses: actions/cache@v4
4037
id: cache
4138
with:
4239
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') }}
4441

4542
- name: Ensure cache is healthy
4643
if: steps.cache.outputs.cache-hit == 'true'
@@ -62,4 +59,4 @@ jobs:
6259
run: poetry run deptry .
6360

6461
- name: Upload coverage
65-
uses: codecov/codecov-action@v3
62+
uses: codecov/codecov-action@v5

0 commit comments

Comments
 (0)