2023-03-23 10:31:11 -05:00
|
|
|
name: Check Python build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2023-03-29 07:08:46 -05:00
|
|
|
concurrency:
|
|
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-03-23 10:31:11 -05:00
|
|
|
jobs:
|
2023-10-05 01:27:24 -05:00
|
|
|
build-python-package:
|
2023-03-23 10:31:11 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-03-12 04:56:31 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-03-23 10:31:11 -05:00
|
|
|
|
2023-03-28 08:23:56 -05:00
|
|
|
- name: Install platform dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
2023-04-05 09:01:11 -05:00
|
|
|
sudo apt install -y libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev
|
2023-03-28 08:23:56 -05:00
|
|
|
|
|
|
|
- name: Install Python dependencies
|
2023-04-05 09:01:11 -05:00
|
|
|
run: make install-python
|
2023-03-23 10:31:11 -05:00
|
|
|
|
|
|
|
- name: Check the Python wheel build
|
2023-04-05 09:01:11 -05:00
|
|
|
run: |
|
|
|
|
. venv/bin/activate
|
|
|
|
make pip
|
2023-03-23 11:51:18 -05:00
|
|
|
|
|
|
|
- name: Archive Python wheel
|
2024-03-12 05:34:15 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-03-23 11:51:18 -05:00
|
|
|
with:
|
|
|
|
name: pgadmin4-python-build-output
|
|
|
|
path: dist/*
|