From 8e53484faea8b1b82e359d6ce556daf0b8967264 Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Tue, 18 Mar 2025 11:42:38 -0500 Subject: [PATCH 1/3] Start adding github actions --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ DSPythonNet3/DSPythonNet3.csproj | 4 ++-- nuget.config | 19 ------------------- 3 files changed, 31 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/main.yml delete mode 100644 nuget.config diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1549a63 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Main + +on: + push: + branches: + - main + pull_request: + +jobs: + build-test: + name: Build and Test + runs-on: [windows-latest, x64] + timeout-minutes: 15 + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6.0.x' + + - name: Build + run: | + dotnet msbuild DynamoPythonNet3.sln -p:Configuration=Release -restore + + - name: Test + run: dotnet test diff --git a/DSPythonNet3/DSPythonNet3.csproj b/DSPythonNet3/DSPythonNet3.csproj index eca012a..39d2b10 100644 --- a/DSPythonNet3/DSPythonNet3.csproj +++ b/DSPythonNet3/DSPythonNet3.csproj @@ -10,11 +10,11 @@ - + - + diff --git a/nuget.config b/nuget.config deleted file mode 100644 index 5053688..0000000 --- a/nuget.config +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - From 9e163c74a6abd6378a1ddfae0114eb30629b4fb3 Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Tue, 18 Mar 2025 11:56:59 -0500 Subject: [PATCH 2/3] Just windows-latest? --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1549a63..c23bb02 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ on: jobs: build-test: name: Build and Test - runs-on: [windows-latest, x64] + runs-on: windows-latest timeout-minutes: 15 steps: From 0e61662c79efb66c1848ed7fffa2bbebe1eccd17 Mon Sep 17 00:00:00 2001 From: Trygve Wastvedt Date: Tue, 18 Mar 2025 21:12:16 -0500 Subject: [PATCH 3/3] Fix version spec --- DSPythonNet3/DSPythonNet3.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DSPythonNet3/DSPythonNet3.csproj b/DSPythonNet3/DSPythonNet3.csproj index 39d2b10..c7d994c 100644 --- a/DSPythonNet3/DSPythonNet3.csproj +++ b/DSPythonNet3/DSPythonNet3.csproj @@ -14,7 +14,7 @@ - +