Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepania authored Oct 9, 2023
1 parent 8020c21 commit e7b71bd
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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

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: 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]

0 comments on commit e7b71bd

Please sign in to comment.