Add Action
This commit is contained in:
parent
f07195dd7d
commit
c734525c97
31
.gitea/workflows/test.yaml
Normal file
31
.gitea/workflows/test.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Test ML model
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
|
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
|
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"yaml.schemas": {
|
||||||
|
"https://json.schemastore.org/github-workflow.json": "file:///d%3A/Source/RhSolutions.ML/.gitea/workflows/deploy.yaml"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user