Skip to content

Commit e476348

Browse files
authored
Merge pull request #3568 from Open-Systems-Pharmacology/develop
Version 12.3
2 parents 9548d83 + c7c9338 commit e476348

81 files changed

Lines changed: 919 additions & 692 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-and-test-pr_12.2.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build and Test 12.3
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- develop
7+
push:
8+
branches:
9+
- develop
10+
11+
permissions:
12+
contents: read
13+
packages: read
14+
15+
jobs:
16+
17+
build:
18+
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/test-csharp.yml@main
19+
secrets: inherit
20+
with:
21+
temp-version: "12.3.9999"

.github/workflows/build-and-test_12.2.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
name: Build Nightly 12.2
2-
run-name: Version 12.2.${{ github.run_number }}
1+
name: Build Nightly 12.3
2+
run-name: Version 12.3.${{ github.run_number }}
33

44
on:
55
workflow_dispatch:
66
schedule:
77
- cron: '0 2 * * *'
88

99
env:
10-
MAJOR: 12
11-
MINOR: 2
12-
RUN: ${{ github.run_number }}
1310
TARGET_FRAMEWORK: net8
1411

1512
permissions:
@@ -23,7 +20,7 @@ jobs:
2320
LATEST_COMMIT_TIMESPAN: ${{ steps.get-latest-commit-timespan.outputs.LATEST_COMMIT_TIMESPAN}}
2421
steps:
2522
- name: Checkout code
26-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2724
with:
2825
fetch-depth: 0
2926

@@ -42,11 +39,14 @@ jobs:
4239
4340
build-nightly:
4441
needs: get-latest-commit-timespan
45-
if: needs.get-latest-commit-timespan.outputs.LATEST_COMMIT_TIMESPAN < 86400
42+
# the build-nightly job should be run in 2 cases:
43+
# - either the workflow was triggered manually (on 'workflow_dispatch')
44+
# - or the workflow was triggered on schedule and last repository commit is not older than 24h (=86400 sec)
45+
if: needs.get-latest-commit-timespan.outputs.LATEST_COMMIT_TIMESPAN < 86400 || github.event_name == 'workflow_dispatch'
4646
runs-on: windows-latest
4747
steps:
4848
- name: Checkout code
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v6
5050
with:
5151
submodules: 'true'
5252

@@ -57,15 +57,15 @@ jobs:
5757
5858
- name: define env variables
5959
run: |
60-
echo "APP_VERSION=${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.RUN }}" | Out-File -FilePath $env:GITHUB_ENV -Append
60+
echo "APP_VERSION=12.3.${{ github.run_number }}" | Out-File -FilePath $env:GITHUB_ENV -Append
6161
6262
- name: Build
6363
run: |
6464
rake "update_go_license[ApplicationStartup.cs, ${{ secrets.GO_DIAGRAM_KEY }}]"
65-
dotnet build PKSim.sln /p:Version=${{env.APP_VERSION}}
65+
dotnet build /p:Version=${{env.APP_VERSION}}
6666
6767
- name : Test
68-
run: dotnet test .\tests\**\bin\Debug\net472\PKSim*Tests.dll -v normal --no-build --logger:"html;LogFileName=../testLog_Windows.html"
68+
run: dotnet test -v normal --no-build --logger:"html;LogFileName=../testLog_Windows.html"
6969

7070
- name: Sign PKSim.exe with CodeSignTool
7171
uses: Open-Systems-Pharmacology/Workflows/.github/actions/codesigner-SSL@main
@@ -120,32 +120,34 @@ jobs:
120120
file_path: ./setup/deploy/PK-Sim.${{ env.APP_VERSION }}.msi
121121

122122
- name: Push test log as artifact
123-
uses: actions/upload-artifact@v4
123+
if: always()
124+
uses: actions/upload-artifact@v7
124125
with:
125126
name: testLog_Windows
126127
path: ./testLog*.html
127128

128129
- name: Push nightly installer as artifact
129-
uses: actions/upload-artifact@v4
130+
uses: actions/upload-artifact@v7
130131
with:
131132
name: PKSim Installer ${{env.APP_VERSION}}
132133
path: setup\deploy\*.msi
133134

134135
- name: Push nightly portable as artifact
135-
uses: actions/upload-artifact@v4
136+
uses: actions/upload-artifact@v7
136137
with:
137138
name: PKSim Portable ${{env.APP_VERSION}}
138139
path: setup\PK-Sim ${{env.APP_VERSION}}
139140

140141
- name: Push R dependencies as artifact
141-
uses: actions/upload-artifact@v4
142+
uses: actions/upload-artifact@v7
142143
with:
143144
name: PKSim R Dependencies
144145
path: src\PKSimRDependencyResolution\bin\Debug\${{env.TARGET_FRAMEWORK}}\pk-sim-r-dependencies.zip
145146

146147
cleanup-job:
147-
needs: get-latest-commit-timespan
148-
if: needs.get-latest-commit-timespan.outputs.LATEST_COMMIT_TIMESPAN >= 86400
148+
needs: build-nightly
149+
# run only if the build-nightly job was skipped
150+
if: always() && needs.build-nightly.result == 'skipped'
149151
runs-on: ubuntu-latest
150152
permissions:
151153
actions: write
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build Nightly 13.0
2+
run-name: Version 13.0.${{ github.run_number }}
3+
4+
on:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
packages: read
10+
11+
jobs:
12+
check-branch:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Validate source branch
16+
run: |
17+
if [ "${{ github.ref_name }}" != "V13" ]; then
18+
echo "::error::Please call the workflow from the V13 branch"
19+
exit 1
20+
fi
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: windows-latest
1515
steps:
1616
- name: Checkout code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
submodules: 'true'
2020

@@ -24,7 +24,7 @@ jobs:
2424
nuget restore
2525
2626
- name: Build
27-
run: dotnet build PKSim.sln /p:Version=12.2.9999
27+
run: dotnet build PKSim.sln /p:Version=12.3.9999
2828

2929

3030
- name: Cover and report

.github/workflows/nightly-badge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ name: Badge for Nightly Build
1515
on:
1616
workflow_run:
1717
workflows:
18-
- "Build Nightly 12.2"
18+
- "Build Nightly 12.3"
1919
types:
2020
- completed
2121

@@ -26,4 +26,4 @@ jobs:
2626
badge:
2727
uses: Open-Systems-Pharmacology/Workflows/.github/workflows/nightly-badge.yml@main
2828
with:
29-
nightly-build-workflow: "build-nightly_12.2.yml"
29+
nightly-build-workflow: "build-nightly_12.3.yml"

PKSim.sln

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.0.31912.275
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.1.11312.151
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9B4D05BE-A0E7-41D6-8FCF-1C6005FBE801}"
77
ProjectSection(SolutionItems) = preProject
88
.gitattributes = .gitattributes
99
.gitignore = .gitignore
10-
.github\workflows\build-and-test-pr_12.2.yml = .github\workflows\build-and-test-pr_12.2.yml
11-
.github\workflows\build-and-test_12.2.yml = .github\workflows\build-and-test_12.2.yml
12-
.github\workflows\build-nightly_12.2.yml = .github\workflows\build-nightly_12.2.yml
10+
.github\workflows\build-nightly_12.3.yml = .github\workflows\build-nightly_12.3.yml
11+
.github\workflows\build-and-test.yml = .github\workflows\build-and-test.yml
1312
db_pre_commit.bat = db_pre_commit.bat
14-
.github\workflows\coverage_12.2.yml = .github\workflows\coverage_12.2.yml
13+
.github\workflows\coverage.yml = .github\workflows\coverage.yml
14+
.github\workflows\nightly-badge.yml = .github\workflows\nightly-badge.yml
1515
postclean.bat = postclean.bat
1616
rakefile.rb = rakefile.rb
1717
README.md = README.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
PK-Sim® uses building blocks that are grouped into [**Individuals**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-creating-individuals), [**Populations**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-creating-populations), [**Expression Profiles**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-expression-profile), [**Compounds**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-compounds-definition-and-work-flow), [**Formulations**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-formulations), [**Administration Protocols**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-administration-protocols), [**Events**](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-events), **Observers** and [**Observed Data**](https://docs.open-systems-pharmacology.org/shared-tools-and-example-workflows/import-edit-observed-data). Building blocks from these groups are combined to produce a [model](https://docs.open-systems-pharmacology.org/working-with-pk-sim/pk-sim-documentation/pk-sim-simulations). The advantage of building blocks is that they can be reused. For example, after having established a model for a drug after single dose intravenous administration to an animal species, just substitute the individual by a suitably parameterized virtual human population and obtain a first in man simulation model. Further substitute the formulation, to obtain a controlled-release per oral simulation model, substitute the protocol to obtain a multiple dose simulation model, or substitute the compound to obtain a simulation model for another drug.
77

88
## Code Status
9-
[![Build status](https://img.shields.io/github/actions/workflow/status/Open-Systems-Pharmacology/PK-Sim/nightly-badge.yml?logo=GitHub&label=Build%20status)](https://github.com/Open-Systems-Pharmacology/PK-Sim/actions/workflows/build-nightly_12.2.yml)
9+
[![Build status](https://img.shields.io/github/actions/workflow/status/Open-Systems-Pharmacology/PK-Sim/nightly-badge.yml?logo=GitHub&label=Build%20status)](https://github.com/Open-Systems-Pharmacology/PK-Sim/actions/workflows/build-nightly_12.3.yml)
1010
[![Coverage status](https://codecov.io/gh/Open-Systems-Pharmacology/PK-Sim/branch/develop/graph/badge.svg)](https://codecov.io/gh/Open-Systems-Pharmacology/PK-Sim)
1111

1212
## Code of conduct

dimensions

0 commit comments

Comments
 (0)