diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index e4355f6bdb..79674d3f98 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -33,14 +33,20 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - - name: Install dependencies - run: pip install mkdocs-material + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x - name: Generate docs run: dotnet run --project src/helpers/GenerateDocs/GenerateDocs.csproj . - name: Build with MkDocs - run: mkdocs build -d ./_site + run: | + python -m venv myenv + source myenv/bin/activate + pip install mkdocs-material + mkdocs build -d ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/src/helpers/GenerateDocs/GenerateDocs.csproj b/src/helpers/GenerateDocs/GenerateDocs.csproj index f67f521030..a47cf75648 100644 --- a/src/helpers/GenerateDocs/GenerateDocs.csproj +++ b/src/helpers/GenerateDocs/GenerateDocs.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable diff --git a/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj b/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj index 121c497191..8dba20ca18 100644 --- a/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj +++ b/src/libs/AutoSDK.CLI/AutoSDK.CLI.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net8.0;net9.0 enable enable $(NoWarn);CA1724;CA1303 diff --git a/src/libs/AutoSDK/AutoSDK.csproj b/src/libs/AutoSDK/AutoSDK.csproj index a2186caa2a..1a06480cbd 100644 --- a/src/libs/AutoSDK/AutoSDK.csproj +++ b/src/libs/AutoSDK/AutoSDK.csproj @@ -1,7 +1,7 @@  - net4.6.2;netstandard2.0;net6.0;net8.0 + net4.6.2;netstandard2.0;net8.0;net9.0 $(NoWarn);CA1031;CA1307;CA1724;CA1056;CA1054;CA1865;CA1847;CA2227;CA1862;CA1303;CA1867 diff --git a/src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj b/src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj index 5f6d1f9c7c..adc7d2f2bb 100644 --- a/src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj +++ b/src/tests/AutoSDK.IntegrationTests.Cli/AutoSDK.IntegrationTests.Cli.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 @@ -11,9 +11,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - - + diff --git a/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs b/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs index 3b2849bf9b..68800a554b 100644 --- a/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs +++ b/src/tests/AutoSDK.IntegrationTests.Cli/CliTests.cs @@ -7,21 +7,21 @@ public class CliTests { // [DataTestMethod] // [DataRow("github.yaml")] - [DataRow("ipinfo.yaml")] - [DataRow("langsmith.json")] - [DataRow("ollama.yaml")] - [DataRow("openai.yaml")] - [DataRow("petstore.yaml")] - [DataRow("replicate.json")] - [DataRow("huggingface.yaml")] - [DataRow("ai21.json")] - [DataRow("cohere.yaml")] - [DataRow("special-cases.yaml")] - [DataRow("twitch.json")] - [DataRow("https://dedoose-rest-api.onrender.com/swagger/v1/swagger.json")] - [DataRow("together.yaml")] - [DataRow("mystic.yaml")] - [DataRow("heygen.yaml")] + // [DataRow("ipinfo.yaml")] + // [DataRow("langsmith.json")] + // [DataRow("ollama.yaml")] + // [DataRow("openai.yaml")] + // [DataRow("petstore.yaml")] + // [DataRow("replicate.json")] + // [DataRow("huggingface.yaml")] + // [DataRow("ai21.json")] + // [DataRow("cohere.yaml")] + // [DataRow("special-cases.yaml")] + // [DataRow("twitch.json")] + // [DataRow("https://dedoose-rest-api.onrender.com/swagger/v1/swagger.json")] + // [DataRow("together.yaml")] + // [DataRow("mystic.yaml")] + // [DataRow("heygen.yaml")] public async Task Generate(string spec) { var tempDirectory = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); diff --git a/src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj b/src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj index 0fdc6794a4..072c211b7f 100644 --- a/src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj +++ b/src/tests/AutoSDK.SnapshotTests/AutoSDK.SnapshotTests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 @@ -9,10 +9,10 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - + @@ -20,8 +20,8 @@ - - + + all diff --git a/src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj b/src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj index 4dbd7153af..9377b54d36 100644 --- a/src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj +++ b/src/tests/AutoSDK.UnitTests/AutoSDK.UnitTests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 @@ -9,7 +9,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + @@ -30,7 +30,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/tests/TrimmingHelper/TrimmingHelper.csproj b/src/tests/TrimmingHelper/TrimmingHelper.csproj index f0e204fce7..404405ac81 100644 --- a/src/tests/TrimmingHelper/TrimmingHelper.csproj +++ b/src/tests/TrimmingHelper/TrimmingHelper.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net9.0 enable true