-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (31 loc) · 1.5 KB
/
coverage.yml
File metadata and controls
38 lines (31 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Code Coverage
on:
schedule:
- cron: '0 1 * * 4'
jobs:
cover:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Restore dependencies
run: |
nuget sources add -username Open-Systems-Pharmacology -password ${{ secrets.GITHUB_TOKEN }} -name OSP-GitHub-Packages -source "https://nuget.pkg.github.com/Open-Systems-Pharmacology/index.json"
nuget sources add -name bddhelper -source https://ci.appveyor.com/nuget/ospsuite-bddhelper
nuget sources add -name utility -source https://ci.appveyor.com/nuget/ospsuite-utility
nuget sources add -name serializer -source https://ci.appveyor.com/nuget/ospsuite-serializer
nuget sources add -name databinding -source https://ci.appveyor.com/nuget/ospsuite-databinding
nuget sources add -name texreporting -source https://ci.appveyor.com/nuget/ospsuite-texreporting
nuget sources add -name databinding-devexpress -source https://ci.appveyor.com/nuget/ospsuite-databinding-devexpress
dotnet restore
- name: Build
run: msbuild OSPSuite.Core.sln /p:Version=12.1.999
- name: Cover and report
uses: Open-Systems-Pharmacology/Workflows/.github/actions/dotCover@main
with:
xml-configuration: dotcover.xml
token: ${{ secrets.CODECOV_TOKEN }}