0
0
RhSolutions-ML/.gitea/workflows/test.yaml

30 lines
570 B
YAML
Raw Normal View History

2023-12-29 14:24:41 +03:00
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