Skip to content

Commit 99c76fe

Browse files
committed
ci
1 parent bfe47bf commit 99c76fe

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/python.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
uses: actions/checkout@v4
3030

3131
- name: Set up Python
32+
id: setup-python # Add an id to reference the Python version
3233
uses: actions/setup-python@v5
3334
with:
3435
python-version: '3.11'
@@ -37,7 +38,10 @@ jobs:
3738
if: runner.os == 'Linux'
3839
run: |
3940
sudo apt-get update
40-
sudo apt-get install -y python3.11-dev pkg-config
41+
sudo apt-get install -y python3-dev pkg-config gcc libssl-dev
42+
# As a fallback, try to install the version-specific dev package if available
43+
# This might error if the package doesn't exist, so we use '|| true'
44+
sudo apt-get install -y python${{ steps.setup-python.outputs.python-version }}-dev || true
4145
4246
- name: Run jacspy tests
4347
working-directory: jacspy

0 commit comments

Comments
 (0)