0
0
RhSolutions-ML/.gitea/workflows/test.yaml
Serghei Cebotari 76e34accd1
Some checks failed
Test ML model / build (push) Failing after 1m2s
Remove old model file from volume
2023-12-30 14:02:35 +03:00

32 lines
635 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: Remove old model
run: rm /output/model.zip
- name: Deploy model
run: cp Models/model.zip /output