Skip to content

Commit 7b8c1ed

Browse files
devlooped-botkzu
authored andcommitted
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Switch to dotnet-env for .NET SDK setup devlooped/oss@56c2b85 - Use GH_TOKEN if available for PR devlooped/oss@77e83f2 - Ignore slnx file format too devlooped/oss@68b409c # devlooped/catbag - Fix wrong ctor types for RuntimeFact/Theory devlooped/catbag@4091497
1 parent a4597a6 commit 7b8c1ed

File tree

7 files changed

+140
-23
lines changed

7 files changed

+140
-23
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ env:
2929
MSBUILDTERMINALLOGGER: auto
3030
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
3131
SLEET_FEED_URL: ${{ vars.SLEET_FEED_URL }}
32-
OPENAI__KEY: ${{ secrets.OPENAI__KEY }}
3332

3433
defaults:
3534
run:
@@ -67,7 +66,7 @@ jobs:
6766
fetch-depth: 0
6867

6968
- name: ⚙ dotnet
70-
uses: ./.github/actions/dotnet
69+
uses: devlooped/actions-dotnet-env@v1
7170

7271
- name: 🙏 build
7372
run: dotnet build -m:1 -bl:build.binlog
@@ -87,7 +86,7 @@ jobs:
8786
- name: 🚀 sleet
8887
env:
8988
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
90-
if: env.SLEET_CONNECTION != '' && env.SLEET_FEED_URL != ''
89+
if: env.SLEET_CONNECTION != ''
9190
run: |
9291
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
9392
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
@@ -102,12 +101,7 @@ jobs:
102101
fetch-depth: 0
103102

104103
- name: ⚙ dotnet
105-
uses: actions/setup-dotnet@v4
106-
with:
107-
dotnet-version: |
108-
6.x
109-
8.x
110-
9.x
104+
uses: devlooped/actions-dotnet-env@v1
111105

112106
- name: ✓ ensure format
113107
run: |

.github/workflows/dotnet-env.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: dotnet-env
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '**/*.*proj'
9+
10+
jobs:
11+
which-dotnet:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
steps:
18+
- name: 🤖 defaults
19+
uses: devlooped/actions-bot@v1
20+
with:
21+
name: ${{ secrets.BOT_NAME }}
22+
email: ${{ secrets.BOT_EMAIL }}
23+
gh_token: ${{ secrets.GH_TOKEN }}
24+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: 🤘 checkout
27+
uses: actions/checkout@v4
28+
with:
29+
token: ${{ env.GH_TOKEN }}
30+
31+
- name: 🤌 dotnet
32+
uses: devlooped/actions-which-dotnet@v1
33+
34+
- name: ✍ pull request
35+
uses: peter-evans/create-pull-request@v7
36+
with:
37+
base: main
38+
branch: which-dotnet
39+
delete-branch: true
40+
labels: dependencies
41+
title: "⚙ Update dotnet versions"
42+
body: "Update dotnet versions"
43+
commit-message: "Update dotnet versions"
44+
token: ${{ env.GH_TOKEN }}

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 0
2929

3030
- name: ⚙ dotnet
31-
uses: ./.github/actions/dotnet
31+
uses: devlooped/actions-dotnet-env@v1
3232

3333
- name: 🙏 build
3434
run: dotnet build -m:1 -bl:build.binlog

.netconfig

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
weak
4848
[file ".github/workflows/build.yml"]
4949
url = https://github.com/devlooped/oss/blob/main/.github/workflows/build.yml
50-
sha = 08c70776943839f73dbea2e65355108747468508
50+
sha = 56c2b8532c2f86235a0f5bd00ba6eba126f199cf
5151

52-
etag = fb2e91cdc9fb7a4d3e8f698e525816c5d8febb35b005c278eecca8056e78f809
52+
etag = bf99c19427f4372ecfe38ec56aa8c411058684fb717da5661f17ac00388b3602
5353
weak
5454
[file ".github/workflows/changelog.config"]
5555
url = https://github.com/devlooped/oss/blob/main/.github/workflows/changelog.config
@@ -77,9 +77,9 @@
7777
weak
7878
[file ".github/workflows/publish.yml"]
7979
url = https://github.com/devlooped/oss/blob/main/.github/workflows/publish.yml
80-
sha = 08c70776943839f73dbea2e65355108747468508
80+
sha = 56c2b8532c2f86235a0f5bd00ba6eba126f199cf
8181

82-
etag = 722a2c7cb3a42bc24ca7fb48d2e9a336641ed0599418239e24efbafccf64bd50
82+
etag = 2ef43521627aa3a91dd55bdc2856ec0c6a93b42485d4fe9d6b181f9ee42c8e18
8383
weak
8484
[file ".github/workflows/triage.yml"]
8585
url = https://github.com/devlooped/oss/blob/main/.github/workflows/triage.yml
@@ -101,9 +101,9 @@
101101
weak
102102
[file "_config.yml"]
103103
url = https://github.com/devlooped/oss/blob/main/_config.yml
104-
sha = fa83a5161ba52bc5d510ce0ba75ee0b1f8d4bc63
104+
sha = 68b409c486842062e0de0e5b11e6fdb7cd12d6e2
105105

106-
etag = 9139148f845adf503fd3c3c140eb64421fc476a1f9c027fc50825c0efb05f557
106+
etag = d608aa0ddaedc2d8a87260f50756e8d8314964ad4671b76bd085bcb458757010
107107
weak
108108
[file "assets/css/style.scss"]
109109
url = https://github.com/devlooped/oss/blob/main/assets/css/style.scss
@@ -137,12 +137,17 @@
137137
weak
138138
[file "src/AI.Tests/Extensions/Attributes.cs"]
139139
url = https://github.com/devlooped/catbag/blob/main/Xunit/Attributes.cs
140-
sha = 615c1e2521340dcd85132807b368a52ff53e4ba7
140+
sha = 40914971d4d6b42d6f8a90923b131136f7e609a5
141141

142-
etag = ec1645067cc2319c2ce3304900c260eb8ec700d50b6d8d62285914a6c96e01f9
142+
etag = c77e7b435ce1df06fb60a3b0e15a0833d8e45d4d19f366c6184140ebb4814b1a
143143
weak
144144
[file "src/dotnet-meai/Sponsors/SponsorManifest.cs"]
145145
url = https://github.com/devlooped/SponsorLink/blob/main/samples/dotnet/SponsorLink/SponsorManifest.cs
146146
sha = a755e4be0f7cb73cfde208857e28f7cfeba2dcc3
147147
etag = 55ef89e8441156541c1c74a50675b7f56633b56493031f0ffa877460839e3536
148148
weak
149+
[file ".github/workflows/dotnet-env.yml"]
150+
url = https://github.com/devlooped/oss/blob/main/.github/workflows/dotnet-env.yml
151+
sha = 77e83f238196d2723640abef0c7b6f43994f9747
152+
etag = fcb9759a96966df40dcd24906fd328ddec05953b7e747a6bb8d0d1e4c3865274
153+
weak

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
theme: jekyll-theme-slate
22

3-
exclude: [ 'src/', '*.sln', 'Gemfile*', '*.rsp' ]
3+
exclude: [ 'src/', '*.sln', '*.slnx', 'Gemfile*', '*.rsp' ]

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ Extensions for [Microsoft.Extensions.AI](https://nuget.org/packages/Microsoft.Ex
2525
[![Kori Francis](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png "Kori Francis")](https://github.com/kfrancis)
2626
[![Toni Wenzel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png "Toni Wenzel")](https://github.com/twenzel)
2727
[![Uno Platform](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png "Uno Platform")](https://github.com/unoplatform)
28-
[![Dan Siegel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png "Dan Siegel")](https://github.com/dansiegel)
2928
[![Reuben Swartz](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png "Reuben Swartz")](https://github.com/rbnswartz)
3029
[![Jacob Foshee](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png "Jacob Foshee")](https://github.com/jfoshee)
3130
[![](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png "")](https://github.com/Mrxx99)
@@ -44,8 +43,10 @@ Extensions for [Microsoft.Extensions.AI](https://nuget.org/packages/Microsoft.Ex
4443
[![Vincent Limo](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/v-limo.png "Vincent Limo")](https://github.com/v-limo)
4544
[![Jordan S. Jones](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jordansjones.png "Jordan S. Jones")](https://github.com/jordansjones)
4645
[![domischell](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/DominicSchell.png "domischell")](https://github.com/DominicSchell)
47-
[![Mauricio Scheffer](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/mausch.png "Mauricio Scheffer")](https://github.com/mausch)
4846
[![Justin Wendlandt](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jwendl.png "Justin Wendlandt")](https://github.com/jwendl)
47+
[![Adrian Alonso](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/adalon.png "Adrian Alonso")](https://github.com/adalon)
48+
[![Michael Hagedorn](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Eule02.png "Michael Hagedorn")](https://github.com/Eule02)
49+
[![Matt Frear](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/mattfrear.png "Matt Frear")](https://github.com/mattfrear)
4950

5051

5152
<!-- sponsors.md -->

src/AI.Tests/Extensions/Attributes.cs

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
using System;
1+
#nullable enable
2+
using System;
23
using System.Collections.Generic;
4+
using System.Runtime.InteropServices;
35
using Microsoft.Extensions.Configuration;
4-
using Xunit;
56

67
namespace Xunit;
78

@@ -45,6 +46,78 @@ public CIFactAttribute()
4546
}
4647
}
4748

49+
public class RuntimeFactAttribute : FactAttribute
50+
{
51+
/// <summary>
52+
/// Use <c>nameof(OSPLatform.Windows|Linux|OSX|FreeBSD)</c>
53+
/// </summary>
54+
public RuntimeFactAttribute(string osPlatform)
55+
{
56+
if (osPlatform != null && !RuntimeInformation.IsOSPlatform(OSPlatform.Create(osPlatform)))
57+
Skip = $"Only running on {osPlatform}.";
58+
}
59+
60+
public RuntimeFactAttribute(Architecture architecture)
61+
{
62+
if (RuntimeInformation.ProcessArchitecture != architecture)
63+
Skip = $"Requires {architecture} but was {RuntimeInformation.ProcessArchitecture}.";
64+
}
65+
66+
/// <summary>
67+
/// Empty constructor for use in combination with RuntimeIdentifier property.
68+
/// </summary>
69+
public RuntimeFactAttribute() { }
70+
71+
/// <summary>
72+
/// Sets the runtime identifier the test requires to run.
73+
/// </summary>
74+
public string? RuntimeIdentifier
75+
{
76+
get => RuntimeInformation.RuntimeIdentifier;
77+
set
78+
{
79+
if (value != null && RuntimeInformation.RuntimeIdentifier != value)
80+
Skip += $"Requires {value} but was {RuntimeInformation.RuntimeIdentifier}.";
81+
}
82+
}
83+
}
84+
85+
public class RuntimeTheoryAttribute : TheoryAttribute
86+
{
87+
/// <summary>
88+
/// Use <c>nameof(OSPLatform.Windows|Linux|OSX|FreeBSD)</c>
89+
/// </summary>
90+
public RuntimeTheoryAttribute(string osPlatform)
91+
{
92+
if (osPlatform != null && !RuntimeInformation.IsOSPlatform(OSPlatform.Create(osPlatform)))
93+
Skip = $"Only running on {osPlatform}.";
94+
}
95+
96+
public RuntimeTheoryAttribute(Architecture architecture)
97+
{
98+
if (RuntimeInformation.ProcessArchitecture != architecture)
99+
Skip = $"Requires {architecture} but was {RuntimeInformation.ProcessArchitecture}.";
100+
}
101+
102+
/// <summary>
103+
/// Empty constructor for use in combination with RuntimeIdentifier property.
104+
/// </summary>
105+
public RuntimeTheoryAttribute() { }
106+
107+
/// <summary>
108+
/// Sets the runtime identifier the test requires to run.
109+
/// </summary>
110+
public string? RuntimeIdentifier
111+
{
112+
get => RuntimeInformation.RuntimeIdentifier;
113+
set
114+
{
115+
if (value != null && RuntimeInformation.RuntimeIdentifier != value)
116+
Skip += $"Requires {value} but was {RuntimeInformation.RuntimeIdentifier}.";
117+
}
118+
}
119+
}
120+
48121
public class SecretsTheoryAttribute : TheoryAttribute
49122
{
50123
public SecretsTheoryAttribute(params string[] secrets)

0 commit comments

Comments
 (0)