|
1 | | -name: Linux |
| 1 | +name: Linuxes Python Matrix |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | branches-ignore: |
|
60 | 60 | jobs: |
61 | 61 | fedora: |
62 | 62 | name: Fedora py313 |
63 | | - runs-on: ubuntu-22.04 |
| 63 | + runs-on: ubuntu-latest |
64 | 64 | if: ${{ !contains(github.ref, '/debian/') }} |
65 | 65 | container: |
66 | | - image: fedora:41 |
| 66 | + image: fedora:44 |
67 | 67 | options: --privileged |
68 | 68 | steps: |
69 | | - - name: Configure container environment |
70 | | - run: | |
71 | | - sudo dnf update -y |
72 | | - sudo dnf install -y git python3-tkinter |
73 | | - git config --global --add safe.directory ${GITHUB_WORKSPACE} |
74 | | - - uses: actions/checkout@v3.3.0 |
75 | | - with: |
76 | | - submodules: false |
77 | | - - name: Setup environment |
78 | | - run: | |
79 | | - sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc |
80 | | - # sudo dnf downgrade -y mesa* --refresh |
81 | | - git submodule update --init --recursive |
82 | | - python -m pip install -U pip |
83 | | - pip install -r requirements-dev.txt |
84 | | - pip install robotframework |
85 | | - - name: Run tests |
86 | | - run: | |
87 | | - Xvfb & |
88 | | - export DISPLAY=:0 |
89 | | - export GITHUB_ACTIONS=True |
90 | | - git submodule update --init --recursive |
91 | | - invoke test-ci |
92 | | - - name: Install and run |
93 | | - run: | |
94 | | - git submodule update --init --recursive |
95 | | - pip install . |
96 | | - xvfb-run --server-args="-screen 0, 1280x720x24" -a ride & |
97 | | - sleep 10 |
98 | | - killall xvfb-run |
99 | | - |
| 69 | + - name: Configure container environment |
| 70 | + run: | |
| 71 | + sudo dnf update -y |
| 72 | + sudo dnf install -y git python3-tkinter |
| 73 | + git config --global --add safe.directory ${GITHUB_WORKSPACE} |
| 74 | + - uses: actions/checkout@v6 |
| 75 | + with: |
| 76 | + submodules: false |
| 77 | + - name: Setup environment |
| 78 | + run: | |
| 79 | + sudo dnf install -y sdl12-compat python3-wxpython4 xorg-x11-server-Xvfb python3-pip python3-tkinter psmisc |
| 80 | + # sudo dnf downgrade -y mesa* --refresh |
| 81 | + git submodule update --init --recursive |
| 82 | + python -m pip install -U pip |
| 83 | + pip install -r requirements-dev.txt |
| 84 | + pip install robotframework |
| 85 | + - name: Run tests |
| 86 | + run: | |
| 87 | + Xvfb & |
| 88 | + export DISPLAY=:0 |
| 89 | + export GITHUB_ACTIONS=True |
| 90 | + git submodule update --init --recursive |
| 91 | + pip install . |
| 92 | + invoke test-ci |
| 93 | + - name: Install and run |
| 94 | + run: | |
| 95 | + git submodule update --init --recursive |
| 96 | + pip install . |
| 97 | + xvfb-run --server-args="-screen 0, 1280x720x24" -a ride & |
| 98 | + sleep 10 |
| 99 | + killall xvfb-run |
| 100 | +
|
100 | 101 | debian: |
101 | 102 | name: Debian |
102 | 103 | runs-on: ubuntu-latest |
103 | 104 | strategy: |
104 | 105 | fail-fast: false |
| 106 | + matrix: |
| 107 | + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] |
105 | 108 | if: ${{ !contains(github.ref, '/fedora/') }} |
106 | 109 | steps: |
107 | | - - uses: actions/checkout@v3.3.0 |
108 | | - with: |
109 | | - submodules: false |
110 | | - - name: Fetch tags |
111 | | - run: | |
112 | | - git fetch --prune --depth=1 --recurse-submodules |
113 | | - git submodule update --init --recursive |
114 | | - - name: Setup environment |
115 | | - run: | |
116 | | - sudo apt update -y |
117 | | - sudo apt install -y libsdl1.2debian libsdl2-2.0-0 libnotify4 wxpython-tools |
118 | | - git submodule update --init --recursive |
119 | | - python -m pip install -U pip |
120 | | - pip install -r requirements-dev.txt |
121 | | - pip install robotframework |
122 | | - - name: Run tests |
123 | | - run: | |
124 | | - Xvfb & |
125 | | - export DISPLAY=:0 |
126 | | - git submodule update --init --recursive |
127 | | - invoke test-ci |
128 | | - - uses: actions/upload-artifact@v4 |
129 | | - with: |
130 | | - name: coverage-report |
131 | | - include-hidden-files: true |
132 | | - path: | |
133 | | - .coverage.1 |
134 | | - .coverage.2 |
135 | | - .coverage.3 |
136 | | - .coverage-reports/coverage.xml |
137 | | - .coverage-reports/htmlcov |
138 | | - - name: Install and run |
139 | | - run: | |
140 | | - git submodule update --init --recursive |
141 | | - pip install -r requirements-dev.txt |
142 | | - pip install robotframework |
143 | | - pip install . |
144 | | - xvfb-run --server-args="-screen 0, 1280x720x24" -a ride & |
145 | | - sleep 10 |
146 | | - killall xvfb-run |
| 110 | + - uses: actions/checkout@v6 |
| 111 | + with: |
| 112 | + submodules: false |
| 113 | + - name: Set up Python ${{ matrix.python-version }} |
| 114 | + uses: actions/setup-python@v5 |
| 115 | + with: |
| 116 | + python-version: ${{ matrix.python-version }} |
| 117 | + - name: Fetch tags |
| 118 | + run: | |
| 119 | + git fetch --prune --depth=1 --recurse-submodules |
| 120 | + git submodule update --init --recursive |
| 121 | + - name: Setup environment |
| 122 | + run: | |
| 123 | + sudo apt update -y |
| 124 | + sudo apt-get install -y --no-install-recommends --no-install-suggests libsdl1.2debian libsdl2-2.0-0 libnotify4 |
| 125 | + git submodule update --init --recursive |
| 126 | + python -m pip install -U pip |
| 127 | + minor=$(echo "${{ matrix.python-version }}" | cut -d . -f 2) |
| 128 | + if [ $minor -lt 10 ]; then |
| 129 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.4-cp39-cp39-linux_x86_64.whl |
| 130 | + elif [ $minor -lt 11 ]; then |
| 131 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.5-cp310-cp310-linux_x86_64.whl |
| 132 | + elif [ $minor -lt 12 ]; then |
| 133 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.5-cp311-cp311-linux_x86_64.whl |
| 134 | + elif [ $minor -lt 13 ]; then |
| 135 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.5-cp312-cp312-linux_x86_64.whl |
| 136 | + elif [ $minor -lt 14 ]; then |
| 137 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.5-cp313-cp313-linux_x86_64.whl |
| 138 | + elif [ $minor -lt 15 ]; then |
| 139 | + python -m pip install https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-24.04/wxpython-4.2.5-cp314-cp314-linux_x86_64.whl |
| 140 | + else |
| 141 | + sudo apt install python3-wxgtk4.0 |
| 142 | + fi |
| 143 | + pip install -r requirements-dev.txt |
| 144 | + pip install robotframework |
| 145 | + - name: Run tests |
| 146 | + run: | |
| 147 | + Xvfb & |
| 148 | + export DISPLAY=:0 |
| 149 | + git submodule update --init --recursive |
| 150 | + invoke test-ci |
| 151 | + - uses: actions/upload-artifact@v4 |
| 152 | + with: |
| 153 | + name: coverage-report |
| 154 | + include-hidden-files: true |
| 155 | + path: | |
| 156 | + .coverage.1 |
| 157 | + .coverage.2 |
| 158 | + .coverage.3 |
| 159 | + .coverage-reports/coverage.xml |
| 160 | + .coverage-reports/htmlcov |
| 161 | + - name: Install and run |
| 162 | + run: | |
| 163 | + git submodule update --init --recursive |
| 164 | + pip install -r requirements-dev.txt |
| 165 | + pip install robotframework |
| 166 | + pip install . |
| 167 | + xvfb-run --server-args="-screen 0, 1280x720x24" -a ride & |
| 168 | + sleep 10 |
| 169 | + killall xvfb-run |
0 commit comments