-
Notifications
You must be signed in to change notification settings - Fork 22
87 lines (74 loc) · 2.39 KB
/
ci-build-windows.yml
File metadata and controls
87 lines (74 loc) · 2.39 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
### Test Installing DEVSimPy on Windows (latest), using venv
### To use from DEVSimPy local repo:
### 1. lauch Docker
### 2. open a powershell terminal
### 3. if act is not installed, execute: winget install nektos.act
### 4. restart the terminal
### 5. execute à partir d'un os window: act -j build-windows -P windows-latest=-self-hosted
name: Windows build
on:
push:
branches:
- master
jobs:
build-windows:
runs-on: windows-latest # Windows-only runner
strategy:
max-parallel: 4
fail-fast: true # Stop all jobs if one fails
matrix:
python-version: ['3.11','3.12','3.13']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python with venv
run: |
python -m venv devsimpy_env
devsimpy_env\Scripts\Activate.ps1
python -m pip install --upgrade pip
- name: Install DEVSimPy with pip
run: |
python -m pip install devsimpy
- name: Test DEVSimPy
run: |
devsimpy --nogui examples/model0/model0.dsp 10
### Test of diag and sub frame
- name: Test DEVSimPy Frame and Dialog
run: |
python -m pip install wxpython>=4.2.2 PyPubSub psutil
cd tests
$FILES = @(
"test_checkergui.py",
"test_connectdialog.py",
"test_detachedframe.py",
"test_diagramconstantsdialog.py",
"test_editor.py",
"test_findgui.py",
"test_ftpgui.py",
"test_htmlwindow.py",
"test_importlibrary.py",
"test_labelgui.py",
"test_preferencesgui.py",
"test_prioritygui.py",
"test_simulationgui.py",
"test_wizardgui.py",
"test_pluginsgui.py",
"test_wxpymail.py",
"test_aiprompterdialog.py",
"test_simpleframeeditor.py",
"test_yamlexportgui.py",
"test_spreadsheet.py",
"test_xmlmodule.py",
"test_standalonegui.py"
)
foreach ($file in $FILES) {
python $file --autoclose --nogui
}
### Upload test results
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: windows-test-results
path: ./windows-test-results/