Skip to content

Commit

Permalink
Merge pull request #282 from giffels/update-github-actions
Browse files Browse the repository at this point in the history
Update GitHub actions
  • Loading branch information
giffels authored Feb 13, 2023
2 parents 248cd6e + d6ee17d commit 74cb920
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deployment-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/docker-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ 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: |
python3 -c '
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 }}

Expand All @@ -40,26 +40,26 @@ 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}}
type=raw,value=latest
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' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. 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/'
#########
CHANGELOG
#########

[Unreleased] - 2023-01-26
[Unreleased] - 2023-02-07
=========================

Added
Expand Down

0 comments on commit 74cb920

Please sign in to comment.