Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing System looking for an error #13

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/build-solution.yml

This file was deleted.

101 changes: 101 additions & 0 deletions .github/workflows/ubuntodotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

environment:
name: github-pages
url: ${{ steps.change-page-url.outputs.new_page_url }}

defaults:
run:
working-directory: ./modelCsharp

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.11.6

#installing packages
- name: Install Python pandas
run: python -m pip install --upgrade pip pandas
- name: Install Python aspose
run: python -m pip install --upgrade pip aspose.words
- name: Install Python matplotlib
run: python -m pip install --upgrade pip matplotlib
- name: Install Python pyinstaller
run: python -m pip install --upgrade pip datetime
- name: Install Python datetime
run: pip install pyinstaller

- name: Create a temporary artifact downloads folder for graphs
run: mkdir graphs

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: run
run: dotnet run --project ConsoleAppSVS-test/ConsoleAppSVS-test.csproj

- name: run python
run: python TestModel/testGraph/testGraph/testGraph.py

- name: moving artfacts to temp folder
run: |
mv index.html graphs
mv index.001.png graphs

- name: find index file
run: find . -type f -name "*.html"

- name: Step 3 - Use the Upload Artifact GitHub Action
uses: actions/upload-artifact@v2
with:
name: folder for graphs
path: ./modelCsharp/graphs

- name: Deploy 🚀
uses: actions/upload-pages-artifact@v2
with:
path: ./modelCsharp/graphs

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

- name: Override page_url
id: change-page-url
run: echo "new_page_url=${{ steps.deployment.outputs.page_url }}index.html" >> $GITHUB_OUTPUT




257 changes: 257 additions & 0 deletions Untitled1.ipynb

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions modelCsharp/ConsoleAppSVS-test/ConsoleAppSVS-test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\SVSModel\SVSModel.csproj" />
<ProjectReference Include="..\TestModel\TestModel\TestModel.csproj" />
Expand Down
18 changes: 15 additions & 3 deletions modelCsharp/ConsoleAppSVS-test/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@

using TestModel;
using TestModel;

Test.RunTests(TestConfigData.configDict);
namespace ConsoleApp1
{

internal class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main(string[] args)
{
Test.RunTests(TestConfigData.configDict);
}
}
}
1 change: 1 addition & 0 deletions modelCsharp/SVSModel.Excel/SVSModel.Excel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="ExcelDna.AddIn" Version="1.7.0-rc1" />
</ItemGroup>

Expand Down
1 change: 1 addition & 0 deletions modelCsharp/SVSModel/SVSModel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommandLineParser" Version="2.9.1" />
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Microsoft.Data.Analysis" Version="0.20.0" />
</ItemGroup>
Expand Down
Binary file added modelCsharp/TestModel/Observed/SoilMineralN.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Date,Nitrogen
10/07/2011 0:00,38
11/07/2011 0:00,55
12/07/2011 0:00,165
13/07/2011 0:00,170
12/07/2011 0:00,170
14/07/2011 0:00,5
15/07/2011 0:00,25
16/07/2011 0:00,75
Expand All @@ -28,99 +28,3 @@ Date,Nitrogen
26/07/2015 0:00,77
27/07/2015 0:00,88
28/07/2015 0:00,99
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
23 changes: 23 additions & 0 deletions modelCsharp/TestModel/TestModel/FertiliserData.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Site,Date,Nitrogen
8,24/09/2020,46
8,24/09/2020,22
8,15/11/2020,22
8,15/11/2020,16
8,21/11/2020,24
8,20/11/2020,0.75
8,24/11/2020,33.28
8,26/11/2020,54
8,26/11/2020,0.75
8,1/12/2020,24
8,4/12/2020,32
8,12/12/2020,38.4
8,12/12/2020,0.75
8,21/04/2021,8.4
8,3/07/2021,4.2
8,10/09/2021,76
8,26/09/2021,76
8,11/10/2021,76
8,29/09/2022,0.125
8,29/09/2022,0.63
8,30/11/2022,0.39
8,30/11/2022,0.1
Loading
Loading