From 15fbd71582e0e3c165b726c2be11d7824315782f Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Tue, 7 Feb 2023 10:40:44 +0100 Subject: [PATCH 1/3] Update GitHub actions --- .github/workflows/deployment-tests.yml | 10 +++++----- .github/workflows/docker-builds.yml | 12 ++++++------ .github/workflows/python-publish.yml | 4 ++-- .github/workflows/unittests.yml | 4 ++-- .github/workflows/verification.yml | 4 ++-- docs/source/changelog.rst | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deployment-tests.yml b/.github/workflows/deployment-tests.yml index c00d658d..862ed3c7 100644 --- a/.github/workflows/deployment-tests.yml +++ b/.github/workflows/deployment-tests.yml @@ -15,15 +15,15 @@ jobs: os_container: ['centos7', 'centosstream8', 'rockylinux8', 'rockylinux9', 'ubuntu20_04', 'ubuntu18_04', 'ubuntu22_04'] steps: - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: push: true file: containers/cobald-tardis-deployment-test-env/Dockerfile.${{ matrix.os_container }} @@ -39,7 +39,7 @@ jobs: os_container: ['centos7', 'centosstream8', 'rockylinux8', 'rockylinux9', 'ubuntu20_04', 'ubuntu18_04', 'ubuntu22_04'] container: matterminers/cobald-tardis-deployment-test-env:${{ matrix.os_container }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies on ${{ matrix.os_container }} run: | python3 -m pip install --upgrade pip @@ -55,7 +55,7 @@ jobs: platform: ['macos-latest'] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install dependencies on ${{ matrix.platform }} run: | python3.10 -m pip install --upgrade pip diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index 7d8cc732..0401e977 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -14,7 +14,7 @@ jobs: setup-docker-builds: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get containers to build id: get_containers run: | @@ -40,12 +40,12 @@ jobs: containers: ${{ fromJSON(needs.setup-docker-builds.outputs.containers) }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 - name: Docker meta id: meta - uses: docker/metadata-action@v3 + uses: docker/metadata-action@v4 with: tags: | type=pep440,pattern={{version}} @@ -53,13 +53,13 @@ jobs: images: matterminers/${{ matrix.containers }} - name: Login to DockerHub if: github.repository == 'MatterMiners/tardis' && github.ref == 'refs/heads/master' - uses: docker/login-action@v1 + uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: containers/${{ matrix.containers }} push: ${{ github.repository == 'MatterMiners/tardis' && github.ref == 'refs/heads/master' }} diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2292c3c4..93a374fc 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,9 +13,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.8' - name: Install dependencies diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index e4480b6b..7db712ea 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -10,9 +10,9 @@ jobs: python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml index de6e1a3a..23cb1f50 100644 --- a/.github/workflows/verification.yml +++ b/.github/workflows/verification.yml @@ -6,9 +6,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.9' - name: Install dependencies diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 421fccfa..3a03a8b2 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,4 +1,4 @@ -.. Created by changelog.py at 2023-01-26, command +.. Created by changelog.py at 2023-02-07, command '/Users/giffler/.cache/pre-commit/repor6pnmwlm/py_env-python3.10/bin/changelog docs/source/changes compile --output=docs/source/changelog.rst' based on the format of 'https://keepachangelog.com/' @@ -6,7 +6,7 @@ CHANGELOG ######### -[Unreleased] - 2023-01-26 +[Unreleased] - 2023-02-07 ========================= Added From 70fcf09089a1cd0ef164f22a873600b9a088899b Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Tue, 7 Feb 2023 10:57:18 +0100 Subject: [PATCH 2/3] Remove deprecated set-output --- .github/workflows/docker-builds.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-builds.yml b/.github/workflows/docker-builds.yml index 0401e977..a5d5e8ec 100644 --- a/.github/workflows/docker-builds.yml +++ b/.github/workflows/docker-builds.yml @@ -22,13 +22,13 @@ jobs: import json import pathlib print( - "::set-output name=containers::%s" + "containers=%s" % json.dumps([ str(path.parent.relative_to("containers")) for path in pathlib.Path("containers").glob("**/Dockerfile") ] )) - ' + ' >> $GITHUB_OUTPUT outputs: containers: ${{ steps.get_containers.outputs.containers }} From d6ee17d99a5b07ffc708413ba7ae347f04212e55 Mon Sep 17 00:00:00 2001 From: Manuel Giffels Date: Tue, 7 Feb 2023 11:05:40 +0100 Subject: [PATCH 3/3] Update codecov GitHub action --- .github/workflows/unittests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 7db712ea..2533bb38 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -24,4 +24,4 @@ jobs: run: | coverage run -m unittest -v - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3