Skip to content

Merge pull request #5 from dlcs/feature/metrics_update #34

Merge pull request #5 from dlcs/feature/metrics_update

Merge pull request #5 from dlcs/feature/metrics_update #34

Workflow file for this run

name: Test and push protagonist recalculator lambda functions
on:
push:
branches:
- main
tags:
- "*"
pull_request:
branches:
- main
paths-ignore:
- "terraform/**"
- "sql/**"
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 }}