Skip to content

Commit 3a9e26b

Browse files
committed
Build sdist and wheel
Test wheel with twine
1 parent 20de14d commit 3a9e26b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/Test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix:
1717
python-version: ['3.10', '3.12', '3.13']
1818
os: ['ubuntu-latest', 'windows-latest']
19-
omc-version: ['nightly']
19+
omc-version: ['stable', 'nightly']
2020

2121
steps:
2222
- uses: actions/checkout@v5
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Install dependencies
3131
run: |
32-
python -m pip install --upgrade pip
32+
python -m pip install --upgrade pip build setuptools wheel twine
3333
pip install . pytest pytest-md pytest-emoji pre-commit
3434
3535
- name: Set timezone
@@ -50,9 +50,11 @@ jobs:
5050
'Modelica 4.0.0'
5151
- run: "omc --version"
5252

53-
- name: Pull OpenModelica docker image
54-
if: runner.os != 'Windows'
55-
run: docker pull openmodelica/openmodelica:v1.25.0-minimal
53+
- name: Build wheel and sdist packages
54+
run: python -m build --wheel --sdist --outdir dist
55+
56+
- name: Check twine
57+
run: python -m twine check dist/*
5658

5759
- name: Run pytest
5860
uses: pavelzw/pytest-action@v2

0 commit comments

Comments
 (0)