Adding customer storage recalculator and entity counter recalculator functions #22
Workflow file for this run
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
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 }} |