30 lines
570 B
YAML
30 lines
570 B
YAML
|
name: Test ML model
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- "master"
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
container:
|
||
|
volumes:
|
||
|
- rhsolutions-model:/output
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Setup .NET 7.0
|
||
|
uses: actions/setup-dotnet@v3
|
||
|
with:
|
||
|
dotnet-version: '7.0'
|
||
|
- name: Restore packages
|
||
|
run: dotnet restore
|
||
|
- name: Build
|
||
|
run: dotnet build
|
||
|
- name: Test
|
||
|
run: dotnet test
|
||
|
- name: Deploy model
|
||
|
run: cp Models/model.zip /output
|