pgadmin4/.github/workflows/check-python-build.yml
Dave Page da937e2618 Don't upgrade base images when running tests.
This takes a lot of time and CPU minutes, and Github keep the images pretty fresh anyway.
2023-03-30 11:23:57 +01:00

41 lines
1.0 KiB
YAML

name: Check Python build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install platform dependencies
run: |
sudo apt update
sudo apt install -y build-essential python3-dev python3-pip libpq-dev libffi-dev libssl-dev libkrb5-dev zlib1g-dev
- name: Install Python dependencies
run: |
sudo pip install --upgrade pip
sudo pip install -r requirements.txt
sudo pip install "pyOpenSSL>=23.*" sphinx sphinxcontrib-youtube
- name: Check the Python wheel build
run: make pip
- name: Archive Python wheel
uses: actions/upload-artifact@v3
with:
name: pgadmin4-python-build-output
path: dist/*