Skip to content

Commit 6382e85

Browse files
Refactor CI workflow to support multiple OS
Updated job configuration to use a matrix strategy for OS compatibility.
1 parent 2bc5e2b commit 6382e85

1 file changed

Lines changed: 31 additions & 16 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,26 +84,41 @@ name: repro-setup-python-root-warning
8484
on:
8585
push:
8686

87+
# jobs:
88+
# repro:
89+
# runs-on: ubuntu-latest
90+
# container:
91+
# image: ubuntu:24.04
92+
# options: --user root
93+
# steps:
94+
# - name: Install prerequisites
95+
# run: |
96+
# apt-get update
97+
# apt-get install -y curl ca-certificates git
98+
99+
# - name: Check user
100+
# run: |
101+
# whoami
102+
# id -u
103+
104+
# - name: Set up Python
105+
# # uses: actions/setup-python@v6
106+
# # uses: lmvysakh/setup-python@rootuser_warning_fix
107+
# uses: priyagupta108/setup-python@pip-root-user-warning
108+
# with:
109+
# python-version: '3.13.7'
110+
111+
# - name: Show pip version
112+
# run: python -m pip --version
87113
jobs:
88114
repro:
89-
runs-on: ubuntu-latest
90-
container:
91-
image: ubuntu:24.04
92-
options: --user root
115+
runs-on: ${{ matrix.os }}
116+
strategy:
117+
matrix:
118+
os: [ubuntu-latest, windows-latest, macos-latest]
93119
steps:
94-
- name: Install prerequisites
95-
run: |
96-
apt-get update
97-
apt-get install -y curl ca-certificates git
98-
99-
- name: Check user
100-
run: |
101-
whoami
102-
id -u
103-
120+
- uses: actions/checkout@v4
104121
- name: Set up Python
105-
# uses: actions/setup-python@v6
106-
# uses: lmvysakh/setup-python@rootuser_warning_fix
107122
uses: priyagupta108/setup-python@pip-root-user-warning
108123
with:
109124
python-version: '3.13.7'

0 commit comments

Comments
 (0)