@@ -16,21 +16,12 @@ jobs:
1616
1717 strategy :
1818 matrix :
19- os : [ubuntu-20.04, windows-2019, macos-11]
19+ os : [windows-2019, macos-11]
2020
2121 steps :
22- - name : Check-out repository
22+ - name : Check-out EasyReflectometry repository
2323 uses : actions/checkout@v3
2424
25- - name : Set up non-Python dependences (Linux)
26- if : runner.os == 'Linux'
27- run : |
28- sudo apt-get -o Acquire::Retries=3 update
29- sudo apt-get -o Acquire::Retries=3 install libxcb-xinerama0
30- sudo apt-get -o Acquire::Retries=3 install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xfixes0
31- sudo apt-get -o Acquire::Retries=3 install libxcb-shape0
32- sudo apt-get -o Acquire::Retries=3 install libpulse-mainloop-glib0
33-
3425 - name : Setup Python
3526 uses : actions/setup-python@v4.5.0
3627 with :
3930 - name : Upgrade PIP
4031 run : python -m pip install --upgrade pip
4132
42- - name : Install with dependencies
33+ - name : Create and activate venv
4334 run : |
44- pip install '.[ci]'
35+ python -m venv env
36+ source env/bin/activate
37+
38+ - name : Install with EasyReflectometry dependencies
39+ run : pip install '.[ci]'
4540
4641 - name : Declare env variables on push only
4742 if : github.event_name == 'push'
@@ -86,10 +81,10 @@ jobs:
8681 - name : Create freezed python app bundle
8782 run : python ${{ env.SCRIPTS_PATH }}/FreezeApp.py
8883
89- - name : Create offline app installers from freezed app bundle
84+ - name : Create offline app installers
9085 run : python ${{ env.SCRIPTS_PATH }}/MakeInstaller.py ${{ secrets.BINARY_SIGN_WIN }} ${{ secrets.CERT_ZIP_PASS }}
9186
92- - name : Create online app installers from freezed app bundle
87+ - name : Create online app installers
9388 if : github.event_name == 'push' && env.BRANCH_NAME == 'master'
9489 run : python ${{ env.SCRIPTS_PATH }}/MakeOnlineInstaller.py ${{ secrets.BINARY_SIGN_WIN }} ${{ secrets.CERT_ZIP_PASS }}
9590
@@ -102,41 +97,31 @@ jobs:
10297 "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1920 1080
10398 system_profiler SPDisplaysDataType | grep Resolution
10499
105- - name : Set up screen recording dependencies (Linux)
106- if : runner.os == 'Linux'
107- run : |
108- sudo apt-get install libxkbcommon-x11-0
109- Xvfb :0 -screen 0 1920x1080x24 -ac &
110- echo "DISPLAY=:0" >> $GITHUB_ENV
111-
112100 - name : Set up screen recording dependencies (Windows)
113101 if : runner.os == 'Windows'
114102 run : |
115103 Set-DisplayResolution -Width 1920 -Height 1080 -Force
116104 Get-DisplayResolution
117105
118- - name : Make dir for .desktop file (Linux)
119- if : runner.os == 'Linux'
120- run : mkdir -p ~/.local/share/applications/
121-
122106 - name : Install app
123107 run : python ${{ env.SCRIPTS_PATH }}/InstallApp.py
124108
125- - name : Run app in testmode, record screen and quit
109+ - name : Run app in testmode and quit
126110 run : python ${{ env.SCRIPTS_PATH }}/RunApp.py --testmode
127111
128- # #- name: Rename test videos
129- # # run: poetry run python ${{ env.SCRIPTS_PATH }}/CreateTestVideos.py ${{ env.BRANCH_NAME }}
130-
131112 - name : Create zip archive of offline app installer
132113 run : python ${{ env.SCRIPTS_PATH }}/ZipArtifacts.py ${{ env.BRANCH_NAME }}
133114
134- - uses : actions/upload-artifact@v3
115+ - name : Upload installer to artifacts
116+ uses : actions/upload-artifact@v3
117+ if : runner.os == 'macOS'
135118 with :
136119 name : macOS
137120 path : " ${{ env.DISTRIBUTION_PATH }}/${{ env.APP_NAME }}_macOS_*.zip"
138121
139- - uses : actions/upload-artifact@v3
122+ - name : Upload installer to artifacts
123+ uses : actions/upload-artifact@v3
124+ if : runner.os == 'Windows'
140125 with :
141126 name : windows
142127 path : " ${{ env.DISTRIBUTION_PATH }}/${{ env.APP_NAME }}_Windows_*.zip"
0 commit comments