Applied feeback from Gert, Lisa and Adrienne #128
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: Test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space (Ubuntu) | |
uses: jlumbroso/free-disk-space@main | |
with: | |
tool-cache: false | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
docker-images: false | |
swap-storage: true | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Determine Dockerfile | |
id: dockerfile | |
run: cat settings.json | jq -r .dockerfile | awk '{printf "filename=%s", $0}' >> "$GITHUB_OUTPUT" | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: ${{steps.dockerfile.outputs.filename}} | |
tags: eyra-rank:latest | |
load: true | |
- name: Run prediction | |
run: docker run --rm -v "$(pwd)/data:/data" eyra-rank:latest /data/fake_data.csv --out=/data/predictions.csv | |
- name: Build Docker scoring image | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: python.Dockerfile | |
tags: eyra-rank:scoring | |
load: true | |
- name: Run scoring | |
run: docker run --rm -v "$(pwd)/data:/data" -v "$(pwd)/.:/outcomes" --entrypoint "conda run -n eyra-rank python /app/score.py" eyra-rank:scoring /data/predictions.csv /outcomes/PreFer_fake_data.csv |