Skip to content

Commit

Permalink
Update actions (#3766)
Browse files Browse the repository at this point in the history
### Changed

- Update actions
  • Loading branch information
henrikstranneheim authored Sep 25, 2024
1 parent 613ab52 commit d7ffdfe
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Set up Python 3.11
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_dockerfile_on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Extract branch name and remove illegal chars
id: get_branch_name
shell: bash
run: echo "branch=$(tr "/" "-" <<<${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build_dockerfile_on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Build and push
id: docker_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_publish_cli_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Prepare Branch Name
id: prepare_branch_name
Expand All @@ -23,7 +23,7 @@ jobs:
fi
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -50,7 +50,7 @@ jobs:
- name: Build and Push Docker Image
id: docker_cli_build
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: ./
file: ./Dockerfile-cli
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/installations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -25,7 +25,7 @@ jobs:
virtualenvs-create: false

- name: Cache Dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests_and_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4.1.1
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
Expand All @@ -25,7 +25,7 @@ jobs:
virtualenvs-create: false

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
Expand All @@ -35,7 +35,7 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: poetry install --no-interaction

- name: Test with pytest & Coveralls
- name: Test with Pytest & Coveralls
run: |
pytest -n logical --cov=cg/
coveralls
Expand Down

0 comments on commit d7ffdfe

Please sign in to comment.