Skip to content

Merge pull request #217 from sustainable-computing-io/dependabot/gith… #298

Merge pull request #217 from sustainable-computing-io/dependabot/gith…

Merge pull request #217 from sustainable-computing-io/dependabot/gith… #298

Workflow file for this run

on:
push:
pull_request:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
src: ${{ steps.changes.outputs.src }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'dockerfiles/requirements.txt'
- 'dockerfiles/Dockerfile.base'
- '.github/workflows/unittest.yaml'
run-test-cases:
runs-on: ubuntu-latest
needs: changes
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build test with base image
if: ${{ needs.changes.outputs.src == 'false' }}
run: make build-test
- name: Build test without base image
if: ${{ needs.changes.outputs.src == 'true' }}
run: make build-test-nobase
- name: Test model server
run: make test-model-server
- name: Test estimator
run: make test-estimator
timeout-minutes: 5
- name: Test pipeline
run: make test-pipeline
- name: Test offline trainer
run: make test-offline-trainer