Skip to content

Commit

Permalink
WIP: Pipelines, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ASolomatin committed Sep 6, 2023
1 parent 801d622 commit 1f937bc
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: nuget
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
44 changes: 44 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Tests

on:
push:
branches:
- '**'
pull_request:

jobs:
tests:

strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
framework: [netcoreapp3.1, net6.0, net461]
exclude:
- os: macos-latest
framework: net461
- os: ubuntu-latest
framework: net461
include:
- sln: src/TDigestNet.sln
- os: windows-latest
sln: src\TDigestNet.sln

runs-on: ${{ matrix.os }}

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

- name: Restore dependencies
run: dotnet restore ${{ matrix.sln }}
- name: Build with dotnet
run: dotnet build ${{ matrix.sln }} --configuration Release --no-restore
- name: Run unit tests
run: dotnet test ${{ matrix.sln }} --configuration Release --no-build --verbosity normal -f ${{ matrix.framework }}
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cSpell.words": [
"Aleksej",
"netcoreapp",
"Quantile",
"Quantiles",
"quantumtunneling",
Expand Down
7 changes: 6 additions & 1 deletion src/TDigestNet.Examples/TDigestNet.Examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFrameworks>netcoreapp3.1;net6.0;net461</TargetFrameworks>
<LangVersion>10.0</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
<Using Remove="System.Net.Http" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\TDigestNet\TDigestNet.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 1f937bc

Please sign in to comment.