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 22 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.

80 changes: 80 additions & 0 deletions .github/workflows/ubuntodotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# 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
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.5

- name: Install Python pandas
run: python -m pip install --upgrade pip pandas

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

- name: Install Python matplotlib
run: python -m pip install --upgrade pip matplotlib

- name: Install email
run: sudo apt-get install mailutils

- name: Install Python pyinstaller
run: python -m pip install --upgrade pip datetime

- name: Install Python datetime
run: pip install pyinstaller

- 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: send a graph
run: mail -s "Graph" -A testplot.png [email protected]

- name: moving artfact to temp folder
run: |
mv testplot.png graphs

- name: list a folder
run: ls graphs

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





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
126 changes: 126 additions & 0 deletions modelCsharp/ConsoleAppSVS-test/OutputFiles/test 1.csv

Large diffs are not rendered by default.

126 changes: 126 additions & 0 deletions modelCsharp/ConsoleAppSVS-test/OutputFiles/test 2.csv

Large diffs are not rendered by default.

126 changes: 126 additions & 0 deletions modelCsharp/ConsoleAppSVS-test/OutputFiles/test 3.csv

Large diffs are not rendered by default.

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);
}
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of .dll are comitted. Is this necessary? I thought dll's were binaries generated by the build system so did not need to be committed. Quite possible I am wrong here.

Binary file not shown.
Binary file not shown.
Loading