From c734525c97dd00cd731bf083ad57db3f584fd7b0 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Fri, 29 Dec 2023 14:24:41 +0300 Subject: [PATCH] Add Action --- .gitea/workflows/test.yaml | 31 +++++++++++++++++++++++++++++++ .vscode/settings.json | 5 +++++ 2 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/test.yaml create mode 100644 .vscode/settings.json diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..07be733 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -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 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3ebccde --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "yaml.schemas": { + "https://json.schemastore.org/github-workflow.json": "file:///d%3A/Source/RhSolutions.ML/.gitea/workflows/deploy.yaml" + } +} \ No newline at end of file