Skip to content

Commit b85b35a

Browse files
dud225aimxhaisse
authored andcommitted
Update GH actions
1 parent f8f0c92 commit b85b35a

2 files changed

Lines changed: 14 additions & 26 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ on:
44
push:
55
branches: [ "main" ]
66
paths:
7-
- 'eth_validator_watcher/*.py'
7+
- 'eth_validator_watcher/**'
88
- 'Dockerfile'
99
- 'pyproject.toml'
10-
- ".github/workflows/docker.yaml"
10+
- '.github/workflows/docker.yaml'
1111
tags:
1212
- "v*"
1313
pull_request:
1414
branches: ["main"]
1515
paths:
16-
- 'eth_validator_watcher/*.py'
16+
- 'eth_validator_watcher/**'
1717
- 'Dockerfile'
1818
- 'pyproject.toml'
19-
- ".github/workflows/docker.yaml"
19+
- '.github/workflows/docker.yaml'
2020

2121
permissions:
2222
contents: read
@@ -26,13 +26,9 @@ jobs:
2626
docker-build-push:
2727
runs-on: ubuntu-latest
2828
steps:
29-
- name: "git:checkout"
30-
uses: actions/checkout@v3
31-
with:
32-
fetch-depth: 0
3329
- name: "docker:meta"
3430
id: meta
35-
uses: docker/metadata-action@v4
31+
uses: docker/metadata-action@v5
3632
with:
3733
images: ghcr.io/${{ github.repository }}
3834
flavor: latest=true
@@ -42,18 +38,16 @@ jobs:
4238
type=semver,pattern={{version}}
4339
- name: "docker:login:ghcr.io"
4440
if: github.ref_type == 'tag'
45-
uses: docker/login-action@v2
41+
uses: docker/login-action@v3
4642
with:
4743
registry: ghcr.io
4844
username: ${{ github.actor }}
49-
password: ${{ secrets.GITHUB_TOKEN }}
45+
password: ${{ github.token }}
5046
- name: "docker:buildx"
51-
uses: docker/setup-buildx-action@v2
47+
uses: docker/setup-buildx-action@v3
5248
- name: "docker:build-push"
53-
uses: docker/build-push-action@v4
49+
uses: docker/build-push-action@v6
5450
with:
55-
context: .
56-
file: Dockerfile
5751
push: ${{ github.ref_type == 'tag' }}
5852
tags: ${{ steps.meta.outputs.tags }}
5953
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/tests.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,14 @@ jobs:
1111
name: Run tests
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- name: Set up Python 3.12
16-
uses: actions/setup-python@v4
17-
with:
18-
python-version: 3.12
14+
- uses: actions/checkout@v4
1915
- name: Install uv
20-
uses: astral-sh/setup-uv@v5
21-
- name: Set up Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version-file: "pyproject.toml"
16+
uses: astral-sh/setup-uv@v6
2517
- name: Install the project
2618
run: uv sync --all-extras --dev
2719
- name: Run tests
2820
run: uv run pytest --cov eth_validator_watcher --cov-report xml
2921
- name: Upload coverage to Codecov
30-
uses: codecov/codecov-action@v3
22+
uses: codecov/codecov-action@v5
23+
with:
24+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)