Fixed Git Actions Testing Pipeline #18
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: 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: watch svcs logs | |
# run: docker compose logs -f -t | |
- name: Wait for svcs | |
run: while [ $(curl -LI http://localhost:5000 -o /dev/null -w '%{http_code}\n' -s) != "302" ] ; 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 |