Skip to content

Commit

Permalink
pytest job split #1
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveSys911 committed Nov 3, 2022
1 parent 3c5f952 commit 3164eb4
Showing 1 changed file with 41 additions and 2 deletions.
43 changes: 41 additions & 2 deletions .github/workflows/cloudbeat-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ concurrency:
cancel-in-progress: true

jobs:
Build:
name: Build
cloudbeat-build:
name: Build cloudbeat docker
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand Down Expand Up @@ -72,6 +72,45 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache-new
outputs: type=docker,dest=/tmp/cloudbeat-${{ env.CONTAINER_SUFFIX }}.tar

- name: Cache docker images
uses: actions/cache@v2
with:
path: /tmp/*.tar
key: ${{ runner.os }}-dockers-cache-${{ env.CONTAINER_SUFFIX }}
restore-keys: |
${{ runner.os }}-dockers-cache-
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
pytest-build:
name: Build pytest docker
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out the repo
uses: actions/checkout@v2

# - name: Get changed files
# id: changed-files
# uses: tj-actions/changed-files@v29.0.4
# with:
# files: |
# tests/**

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

- name: Cache Build dependencies
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache-pytest
key: ${{ runner.os }}-buildx-pytest-${{ github.workflow }}
restore-keys: |
${{ runner.os }}-buildx-pytest
- name: Build pytest-docker
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 3164eb4

Please sign in to comment.