Skip to content

Commit

Permalink
Update Github Actions (#504)
Browse files Browse the repository at this point in the history
* update github actions to point to newer versions

* update pre-commit and poetry actions

* change pre-commit version
  • Loading branch information
TShapinsky authored May 13, 2024
1 parent d12bf42 commit dfb859f
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Run pre-commit
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
with:
extra_args: --all-files

Expand All @@ -34,15 +34,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.3

Expand Down Expand Up @@ -70,13 +70,13 @@ jobs:
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v4
with:
files: docker-compose.yml, docker-compose.dev.yml
set: |
Expand All @@ -95,7 +95,7 @@ jobs:
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d worker mongo redis minio mc goaws
- name: Dump docker logs before tests
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

- name: Run job tests in Docker worker container
run: |
Expand All @@ -104,31 +104,31 @@ jobs:
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

integration-tests:
name: Run integration tests
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.3

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

- name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v4
with:
files: docker-compose.yml
set: |
Expand All @@ -153,7 +153,7 @@ jobs:
interval: 500

- name: Dump docker logs before tests
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

- name: Install dependencies
run: poetry install
Expand All @@ -172,31 +172,31 @@ jobs:
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

integration-tests-historian:
name: Run integration tests with historian
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
uses: abatilo/actions-poetry@v3
with:
poetry-version: 1.8.3

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

- name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v4
with:
load: true
files: docker-compose.yml, docker-compose.dev.yml, docker-compose.historian.yml
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
interval: 500

- name: Dump docker logs before tests
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

- name: Install dependencies
run: poetry install
Expand All @@ -244,14 +244,14 @@ jobs:
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1
uses: jwalton/gh-docker-logs@v2

publish:
needs: [pre-commit, unit-tests, simulation-tests, integration-tests, integration-tests-historian]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log into container registry
uses: docker/login-action@v2
Expand All @@ -261,7 +261,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

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

- name: Docker meta
uses: docker/metadata-action@v4
Expand All @@ -278,7 +278,7 @@ jobs:
type=semver,pattern={{major}},enable=${{ github.event_name == 'release' }}
- name: Build
uses: docker/bake-action@v2
uses: docker/bake-action@v4
with:
files: |
docker-compose.yml
Expand Down

0 comments on commit dfb859f

Please sign in to comment.