summaryrefslogtreecommitdiff
path: root/.gitea/workflows/test.yaml
blob: 07be733493c07ed9773e9be1e00e7a75c355942e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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