From 47ed3174b351ac9d5cf194d0e6e568b1db77f5e7 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Sat, 5 Nov 2022 11:37:07 +0100 Subject: [PATCH 1/3] fix: update workflow actions --- .github/workflows/dev.yml | 10 +++++----- .github/workflows/features.yml | 10 +++++----- .github/workflows/main.yml | 12 ++++++------ .github/workflows/mypy.yml | 6 +++--- .github/workflows/pull_requests.yml | 10 +++++----- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 35d507c..e539a62 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest name: Security check steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Security Checks (PyCharm Security) uses: tonybaloney/pycharm-security@master with: @@ -39,18 +39,18 @@ jobs: - name: Setup QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: image: tonistiigi/binfmt:latest platforms: all - name: Setup Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} flavor: | @@ -59,7 +59,7 @@ jobs: - name: Build Docker image id: build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile diff --git a/.github/workflows/features.yml b/.github/workflows/features.yml index cc6cb90..964ef41 100644 --- a/.github/workflows/features.yml +++ b/.github/workflows/features.yml @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest name: Security check steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Security Checks (PyCharm Security) uses: tonybaloney/pycharm-security@master with: @@ -40,18 +40,18 @@ jobs: - name: Setup QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: image: tonistiigi/binfmt:latest platforms: all - name: Setup Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} flavor: | @@ -60,7 +60,7 @@ jobs: - name: Build Docker image id: build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9115554..02511b7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,22 +22,22 @@ jobs: steps: - name: Checkout Dockerfile id: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: image: tonistiigi/binfmt:latest platforms: all - name: Setup Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to GitHub Container Registry id: ghcr - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: registry: ${{ env.REGISTRY }} username: ${{ github.repository_owner }} @@ -45,7 +45,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} flavor: | @@ -54,7 +54,7 @@ jobs: - name: Build and push Docker image id: build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: build-args: GH_TOKEN=${{ secrets.GH_TOKEN }} context: . diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index f1cc65c..73af0c7 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -10,16 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.10.7 architecture: x64 - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Install mypy run: pip install mypy - name: Run mypy - uses: sasanquaneuf/mypy-github-action@releases/v1 + uses: ThexXTURBOXx/mypy-github-action@main with: checkName: 'mypy' env: diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index c00b953..9fd164e 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest name: Security check steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Security Checks (PyCharm Security) uses: tonybaloney/pycharm-security@master with: @@ -35,18 +35,18 @@ jobs: - name: Setup QEMU id: qemu - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v2 with: image: tonistiigi/binfmt:latest platforms: all - name: Setup Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} flavor: | @@ -55,7 +55,7 @@ jobs: - name: Build Docker image id: build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3 with: context: . file: ./Dockerfile From f8d92e34bf3d25497b72e09ef35f271bf4a94782 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Sat, 5 Nov 2022 12:52:52 +0100 Subject: [PATCH 2/3] fix: change mypy to main again --- .github/workflows/mypy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 73af0c7..90607a3 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -19,7 +19,7 @@ jobs: - name: Install mypy run: pip install mypy - name: Run mypy - uses: ThexXTURBOXx/mypy-github-action@main + uses: sasanquaneuf/mypy-github-action@main with: checkName: 'mypy' env: From 6ffaa837bd579a0c5eb685a3f8e6352ef900a8a8 Mon Sep 17 00:00:00 2001 From: Alexandre Teles Date: Tue, 22 Nov 2022 21:53:10 -0300 Subject: [PATCH 3/3] fix: bump python version The MyPy workflow requires the latest minor Python version, or it refuses to run :/ --- .github/workflows/mypy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 90607a3..e56f370 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -12,7 +12,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.10.7 + python-version: 3.10.8 architecture: x64 - name: Checkout uses: actions/checkout@v3