Skip to content

Merge pull request #1 from national-data-platform/feature-mlflow-keyc… #13

Merge pull request #1 from national-data-platform/feature-mlflow-keyc…

Merge pull request #1 from national-data-platform/feature-mlflow-keyc… #13

Workflow file for this run

name: CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-run-test:
name: Build, run, and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build svcs
run: docker compose build
- name: Run svcs
run: docker compose up -d
- name: Wait for svcs
run: sleep 10
# run: while [ $(curl -LI http://localhost:5000 -o /dev/null -w '%{http_code}\n' -s) != "200" ] ; do echo waiting... ; sleep 2 ; done
- name: Install requirements
run: pip3 install -r tests/requirements.txt
- name: Run tests
run: cd tests && python3 mlflow_test.py
- name: Clean up
run: docker compose down --volumes