Skip to content

Commit 5fbe8a7

Browse files
committed
Try to install pscopg2 prereqs in sphinx gh action part 7
1 parent ad77e30 commit 5fbe8a7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/sphinx.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ jobs:
1111
contents: write
1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Pre-build Setup
15-
run: |
16-
apt-get update -y && \
17-
apt-get install -y gcc python3-dev libpq-dev
18-
# Find pg_config and add it to PATH if not found
19-
if ! command -v pg_config &> /dev/null; then
20-
PG_CONFIG_PATH=$(find /usr/lib/postgresql -type f -name pg_config | head -n 1)
21-
if [ -n "$PG_CONFIG_PATH" ]; then
22-
export PATH=$(dirname "$PG_CONFIG_PATH"):$PATH
23-
else
24-
echo "pg_config not found, exiting..." >&2
25-
exit 1
26-
fi
27-
fi
28-
pg_config --version
2914
- name: Build HTML
3015
uses: ammaraskar/sphinx-action@master
16+
with:
17+
pre-build-command: |
18+
apt-get update -y && \
19+
apt-get install -y gcc python3-dev libpq-dev
20+
# Find pg_config and add it to PATH if not found
21+
if ! command -v pg_config &> /dev/null; then
22+
PG_CONFIG_PATH=$(find /usr/lib/postgresql -type f -name pg_config | head -n 1)
23+
if [ -n "$PG_CONFIG_PATH" ]; then
24+
export PATH=$(dirname "$PG_CONFIG_PATH"):$PATH
25+
else
26+
echo "pg_config not found, exiting..." >&2
27+
exit 1
28+
fi
29+
fi
30+
pg_config --version
3131
env:
3232
SETUPTOOLS_SCM_PRETEND_VERSION: 1
3333
- name: Upload artifacts

0 commit comments

Comments
 (0)