Skip to content

Commit d13569c

Browse files
authored
Merge pull request #9 from dnv-opensource/eis
merge eis into main
2 parents eb6ea4f + cd9ebb5 commit d13569c

37 files changed

Lines changed: 2260 additions & 1561 deletions

.github/workflows/_build_and_publish_documentation.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ jobs:
2121
with:
2222
enable-cache: true
2323
cache-dependency-glob: 'uv.lock'
24-
- name: Set up Python
25-
uses: actions/setup-python@v6
26-
with:
27-
python-version-file: 'pyproject.toml'
2824
- name: Install the project
2925
run: uv sync --frozen
3026
- name: Print debugging information

.github/workflows/_build_package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ jobs:
77
name: Build source distribution
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v5
10+
- name: Checkout code
11+
uses: actions/checkout@v5
1112
with:
1213
lfs: true
1314
- name: Install uv
1415
uses: astral-sh/setup-uv@v7
1516
with:
1617
enable-cache: true
1718
cache-dependency-glob: "uv.lock"
18-
- uses: actions/setup-python@v6
19-
with:
20-
python-version-file: "pyproject.toml"
21-
- name: Build source distribution and wheel
19+
- name: Build source distribution and wheels
2220
run: uv build
23-
- name: Run twine check
21+
- name: Check build artifacts
2422
run: uvx twine check --strict dist/*
25-
- uses: actions/upload-artifact@v5
23+
- name: Upload build artifacts
24+
uses: actions/upload-artifact@v5
2625
with:
26+
name: dist
2727
path: |
2828
dist/*.tar.gz
2929
dist/*.whl

.github/workflows/_code_quality.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,40 @@ jobs:
77
runs-on: ubuntu-latest
88
name: ruff format
99
steps:
10-
- uses: actions/checkout@v5
10+
- name: Checkout code
11+
uses: actions/checkout@v5
1112
- name: Install uv
1213
uses: astral-sh/setup-uv@v7
1314
with:
1415
enable-cache: true
1516
cache-dependency-glob: "uv.lock"
16-
- name: Set up Python
17-
uses: actions/setup-python@v6
18-
with:
19-
python-version-file: "pyproject.toml"
2017
- name: Install the project
21-
run: uv sync --upgrade
18+
run: uv sync -U
2219
- name: Run ruff format
2320
run: uv run ruff format --diff
2421

2522
ruff_check:
2623
runs-on: ubuntu-latest
2724
name: ruff check
2825
steps:
29-
- uses: actions/checkout@v5
26+
- name: Checkout code
27+
uses: actions/checkout@v5
3028
- name: Install uv
3129
uses: astral-sh/setup-uv@v7
3230
with:
3331
enable-cache: true
3432
cache-dependency-glob: "uv.lock"
35-
- name: Set up Python
36-
uses: actions/setup-python@v6
37-
with:
38-
python-version-file: "pyproject.toml"
3933
- name: Install the project
40-
run: uv sync --upgrade
34+
run: uv sync -U
4135
- name: Run ruff check
4236
run: uv run ruff check --diff
4337

4438
# pyright:
4539
# runs-on: ubuntu-latest
4640
# name: pyright
4741
# steps:
48-
# - uses: actions/checkout@v5
42+
# - name: Checkout code
43+
# uses: actions/checkout@v5
4944
# - name: Install uv
5045
# uses: astral-sh/setup-uv@v7
5146
# with:
@@ -56,25 +51,22 @@ jobs:
5651
# with:
5752
# python-version-file: "pyproject.toml"
5853
# - name: Install the project
59-
# run: uv sync --upgrade --extra test
54+
# run: uv sync -U --extra test
6055
# - name: Run pyright
6156
# run: uv run pyright
6257

6358
mypy:
6459
runs-on: ubuntu-latest
6560
name: mypy
6661
steps:
67-
- uses: actions/checkout@v5
62+
- name: Checkout code
63+
uses: actions/checkout@v5
6864
- name: Install uv
6965
uses: astral-sh/setup-uv@v7
7066
with:
7167
enable-cache: true
7268
cache-dependency-glob: "uv.lock"
73-
- name: Set up Python
74-
uses: actions/setup-python@v6
75-
with:
76-
python-version-file: "pyproject.toml"
7769
- name: Install the project
78-
run: uv sync --upgrade --extra test
70+
run: uv sync -U --extra test
7971
- name: Run mypy
8072
run: uv run mypy

.github/workflows/_merge_into_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
runs-on: ubuntu-latest
1313
environment: release
1414
steps:
15-
- uses: actions/checkout@v5
15+
- name: Checkout code
16+
uses: actions/checkout@v5
1617
with:
1718
# Fetch the whole history to prevent unrelated history errors
1819
fetch-depth: 0

.github/workflows/_test.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,33 +4,23 @@ on: workflow_call
44

55
jobs:
66
test:
7-
name: Test on ${{matrix.python.version}}-${{matrix.platform.runner}}
8-
runs-on: ${{ matrix.platform.runner }}
7+
name: Test (Python ${{ matrix.python }}, ${{ matrix.os }})
8+
runs-on: ${{ matrix.os }}
99
strategy:
1010
fail-fast: true
1111
matrix:
12-
platform:
13-
- runner: ubuntu-latest
14-
- runner: windows-latest
15-
# - runner: macos-latest
16-
python:
17-
- version: '3.11'
18-
- version: '3.12'
19-
- version: '3.13'
20-
- version: '3.14'
12+
os: [ubuntu-latest, windows-latest]
13+
python: ['3.11', '3.12', '3.13', '3.14']
2114
steps:
22-
- uses: actions/checkout@v5
15+
- name: Checkout code
16+
uses: actions/checkout@v5
2317
- name: Install uv
2418
uses: astral-sh/setup-uv@v7
2519
with:
2620
enable-cache: true
2721
cache-dependency-glob: 'uv.lock'
28-
- name: Install Python ${{ matrix.python.version }}
29-
uses: actions/setup-python@v6
30-
with:
31-
python-version: ${{ matrix.python.version }}
3222
- name: Install the project
33-
run: uv sync -p ${{ matrix.python.version }} -U --no-dev --extra test
23+
run: uv sync -p ${{ matrix.python }} -U --no-dev --extra test
3424
- name: Run pytest
3525
run: >
3626
uv run --with pytest --with pytest-cov

.github/workflows/_test_future.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,24 @@ on: workflow_call
55

66
jobs:
77
test315:
8-
name: Test on ${{matrix.python.version}}-${{matrix.platform.runner}} (experimental)
8+
name: Test (Python ${{ matrix.python.version }}, ${{ matrix.os }}) (experimental)
99
continue-on-error: true
10-
runs-on: ${{ matrix.platform.runner }}
10+
runs-on: ${{ matrix.os }}
1111
strategy:
1212
fail-fast: true
1313
matrix:
14-
platform:
15-
- runner: ubuntu-latest
16-
- runner: windows-latest
14+
os: [ubuntu-latest, windows-latest]
1715
python:
1816
- version: '3.15.0-alpha - 3.15.0'
1917
uvpy: '3.15'
2018
steps:
21-
- uses: actions/checkout@v5
19+
- name: Checkout code
20+
uses: actions/checkout@v5
2221
- name: Install uv
2322
uses: astral-sh/setup-uv@v7
2423
with:
2524
enable-cache: true
2625
cache-dependency-glob: 'uv.lock'
27-
- name: Install Python ${{ matrix.python.version }}
28-
uses: actions/setup-python@v6
29-
with:
30-
python-version: ${{ matrix.python.version }}
3126
- name: Remove Python upper version constraint from pyproject.toml
3227
shell: pwsh
3328
run: |

.github/workflows/nightly_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ run-name: Nightly Build (by @${{ github.actor }})
44
on:
55
schedule:
66
- cron: '30 5 * * *'
7+
workflow_dispatch: # Allow manual trigger
78

89
jobs:
910
test:

.github/workflows/publish_release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ jobs:
1818
permissions:
1919
id-token: write
2020
steps:
21-
- uses: actions/download-artifact@v5
21+
- name: Download build artifacts
22+
uses: actions/download-artifact@v5
2223
with:
23-
name: artifact
24+
name: dist
2425
path: dist
25-
- uses: pypa/gh-action-pypi-publish@release/v1
26+
- name: Publish to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
2628
# with: # Uncomment this line to publish to testpypi
2729
# repository-url: https://test.pypi.org/legacy/ # Uncomment this line to publish to testpypi
2830
merge_into_release:

.github/workflows/pull_request_to_main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- converted_to_draft
1212
branches:
1313
- main
14+
workflow_dispatch: # Allow manual trigger
1415

1516
concurrency:
1617
group: pr-${{ github.ref }}-1

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- id: check-toml
1010
- id: check-merge-conflict
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
12-
rev: v0.14.3
12+
rev: v0.15.1
1313
hooks:
1414
- id: ruff-format
1515
- id: ruff-check

0 commit comments

Comments
 (0)