4545 with :
4646 name : swig-sources
4747 path : python-wrapper/swig
48- - name : check source files
49- run : ls -al sensirion_gas_index_algorithm
5048 - uses : actions/setup-python@v5
5149 with :
5250 python-version : 3.8
6462 with :
6563 path : python-wrapper/dist/**
6664 if-no-files-found : error
67-
65+ py3p8_linux_sdist :
66+ runs-on : " ubuntu-22.04"
67+ needs : generate-wrapper
68+ defaults :
69+ run :
70+ working-directory : ./python-wrapper
71+ steps :
72+ - uses : actions/checkout@v4
73+ - uses : actions/download-artifact@v4
74+ with :
75+ name : python-sources
76+ path : python-wrapper/sensirion_gas_index_algorithm
77+ - uses : actions/download-artifact@v4
78+ with :
79+ name : swig-sources
80+ path : python-wrapper/swig
81+ - uses : actions/setup-python@v5
82+ with :
83+ python-version : 3.8
84+ - name : create dist package
85+ run : python3 setup.py sdist
86+ - uses : actions/upload-artifact@v4
87+ with :
88+ path : python-wrapper/dist/**
89+ if-no-files-found : error
90+ py3p8_windows_build :
91+ runs-on : " windows-2022"
92+ needs : generate-wrapper
93+ defaults :
94+ run :
95+ working-directory : ./python-wrapper
96+ steps :
97+ - uses : actions/checkout@v4
98+ - uses : actions/download-artifact@v4
99+ with :
100+ name : python-sources
101+ path : python-wrapper/sensirion_gas_index_algorithm
102+ - uses : actions/download-artifact@v4
103+ with :
104+ name : swig-sources
105+ path : python-wrapper/swig
106+ - uses : actions/setup-python@v5
107+ with :
108+ python-version : 3.8
109+ - name : install package
110+ run : |
111+ pip3 install -e .[test]
112+ pip3 install wheel
113+ - name : static test
114+ run : flake8
115+ - name : unit test
116+ run : pytest
117+ - name : create wheel
118+ run : python3 setup.py bdist_wheel
119+ - uses : actions/upload-artifact@v4
120+ with :
121+ path : python-wrapper/dist/**
122+ if-no-files-found : error
0 commit comments