Skip to content

Adding customer storage recalculator and entity counter recalculator functions #22

Adding customer storage recalculator and entity counter recalculator functions

Adding customer storage recalculator and entity counter recalculator functions #22

Workflow file for this run

name: Test and push protagonist recalculator lambda functions
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
jobs:
test-entity-counter-recalculator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/[email protected]
with:
python-version: 3.11
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Run python tests
working-directory: ./src
run: python -m unittest test_entity_counter_recalculator.py
test-customer-storage-recalculator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup python
uses: actions/[email protected]
with:
python-version: 3.11
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Run python tests
working-directory: ./src
run: python -m unittest test_customer_storage_recalculator.py
build-push-dlcs-entity-counter-recalculator:
runs-on: ubuntu-latest
needs: test-entity-counter-recalculator
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/docker-build-and-push
with:
image-name: "entity-counter-recalculator"
dockerfile: "src/EntityCounterDockerfile"
context: "./src"
github-token: ${{ secrets.GITHUB_TOKEN }}
build-push-dlcs-customer-storage-recalculator:
runs-on: ubuntu-latest
needs: test-customer-storage-recalculator
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/docker-build-and-push
with:
image-name: "customer-storage-recalculator"
dockerfile: "src/CustomerStorageDockerfile"
context: "./src"
github-token: ${{ secrets.GITHUB_TOKEN }}