Skip to content

Commit

Permalink
Running test data and unittesting
Browse files Browse the repository at this point in the history
  • Loading branch information
crosenth committed Aug 13, 2024
1 parent 3ca3884 commit aa754ca
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/docker-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
build_pipeline_image:
build_and_test_pipeline_image:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: |
settings.conf
testfiles
tests
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -32,6 +40,24 @@ jobs:
- name: Build and push tag
uses: docker/build-push-action@v6
with:
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
load: true
push: false
tags: |
${{ steps.meta.outputs.tags }}
gha_image
- name: Test run and unnitests
run: docker run --volume $(pwd):$(pwd) --workdir $(pwd) gha_image /bin/bash -c "scons test=yes;python -m unnitest"

- name: Build and push tag
if: github.ref_type == 'tag'
uses: docker/build-push-action@v6
with:
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit aa754ca

Please sign in to comment.