Skip to content

Commit e873b08

Browse files
authored
Added ubuntu-rolling to workflow (#988)
* Added ubuntu-rolling to workflow
1 parent ceb2c6c commit e873b08

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/test-install-dependencies.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"]
19+
container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:rolling"]
2020
container:
2121
image: ${{ matrix.container_image }}
2222
steps:
@@ -32,7 +32,17 @@
3232
ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone # Otherwise tzdata installer prompts for user input
3333
sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh # Doesn't work on docker
3434
bash tmp_script.sh
35+
- name: Create a virtual environment
36+
if: endsWith(matrix.container_image, 'rolling') == true
37+
run: |
38+
sudo apt-get install -y python3-venv
39+
python3 -m venv venv
40+
. venv/bin/activate
41+
pip install --upgrade pip
42+
python3 examples/install_requirements.py
43+
shell: bash
3544
- name: Install example requirements
45+
if: endsWith(matrix.container_image, 'rolling') == false
3646
run: |
3747
python3 examples/install_requirements.py
3848
test_macos:

docs/source/_static/install_dependencies.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ elif [ -f /etc/os-release ]; then
188188

189189
if [ $IS_ARM ]; then
190190
sudo DEBIAN_FRONTEND=noninteractive apt install -y "${debian_arm_pkgs[@]}"
191-
if [ "$version" == "13" ]; then
191+
if [[ $version == 13* ]]; then
192192
echo "Detected ARM Debian 13"
193193
sudo apt install -y "${debian_pkgs_23[@]}"
194-
elif version_lte "$version" "11"; then
194+
elif version_lte "$version" "11.99"; then
195195
echo "Using pre-22.04 ARM package list"
196196
sudo apt-get install -y ${debian_pkgs_pre22_04[@]}
197197

@@ -214,10 +214,10 @@ elif [ -f /etc/os-release ]; then
214214

215215
else
216216
sudo DEBIAN_FRONTEND=noninteractive apt install -y "${debian_pkgs[@]}"
217-
if [ $version == "13" ]; then
217+
if [[ $version == 13* ]]; then
218218
echo "Detected Debian 13"
219219
sudo apt install -y "${debian_pkgs_23[@]}"
220-
elif version_lte "$version" "11"; then
220+
elif version_lte "$version" "11.99"; then
221221
echo "Using pre-22.04 package list"
222222
sudo apt-get install -y "${debian_pkgs_pre22_04[@]}"
223223

0 commit comments

Comments
 (0)