-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update github actions to point to newer versions * update pre-commit and poetry actions * change pre-commit version
- Loading branch information
1 parent
d12bf42
commit dfb859f
Showing
1 changed file
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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: | | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 | ||
|