Skip to content

Run Test

Run Test #14

Workflow file for this run

name: Run Test
run-name: Run Test
on:
push
jobs:
run_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10.13"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true
- name: Install dependencies
run: |
poetry install --no-root --no-interaction --only test
- name: Pull data and model
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
source .venv/bin/activate
dvc repro download_data
dvc pull live/model/model.pkl live/model/model.onnx
- name: Run test
run: |
source .venv/bin/activate
pytest
- name: Set up CML
uses: iterative/setup-cml@v2
- name: Create CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
poetry install --no-root --no-interaction --only report
source .venv/bin/activate
make report
cml comment create report.md