-
Notifications
You must be signed in to change notification settings - Fork 22
100 lines (88 loc) · 2.63 KB
/
ci-build-ubuntu.yml
File metadata and controls
100 lines (88 loc) · 2.63 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
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Ubuntu build
on:
push:
branches:
- master
jobs:
build-ubuntu:
runs-on: ubuntu-latest
strategy:
max-parallel: 1 # X Display is not supported on parallel jobs
fail-fast: true # Stop all jobs if one fails
matrix:
python-version: ['3.11','3.12','3.13']
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python with Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: latest
conda-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: anaconda-client-env
python-version: ${{ matrix.python-version }}
- name: Install conda dependencies
run: |
conda install -y -c conda-forge python=${{ matrix.python-version }} wxpython>=4.2.2
conda info -a
conda list
- name: Install dependencies with pip
run: |
python -m pip install --no-cache-dir --prefer-binary \
psutil \
pyYAML \
PyPubSub \
ruamel.yaml \
matplotlib
- name: Install X serveur
run: |
sudo apt-get update
sudo apt-get install -y xvfb libgtk-3-0
### Test of DEVSimPy (open, start simulation during 10 time step and close)
- name: Test DEVSimPy
run: |
xvfb-run -a python devsimpy/devsimpy.py examples/model0/model0.dsp 10 autostart autoclose
### Test of diag and sub frame
- name: Test DEVSimPy Frame and Dialog
run: |
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
)
for file in "${FILES[@]}"; do
xvfb-run -a python "$file" --autoclose
done
### Upload test results
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ubuntu-test-results
path: ./ubuntu-test-results/