mirror of
https://github.com/pretix/pretix.git
synced 2026-01-01 18:32:27 +00:00
50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'src/pretix/locale/**'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths-ignore:
|
|
- 'doc/**'
|
|
- 'src/pretix/locale/**'
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
env:
|
|
FORCE_COLOR: 1
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-22.04
|
|
name: Packaging
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- uses: actions/cache@v4
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pip-
|
|
- name: Install system dependencies
|
|
run: sudo apt update && sudo apt install gettext unzip
|
|
- name: Install Python dependencies
|
|
run: pip3 install -U setuptools build pip check-manifest
|
|
- name: Run check-manifest
|
|
run: check-manifest
|
|
- name: Run build
|
|
run: python -m build
|
|
- name: Check files
|
|
run: unzip -l dist/pretix*whl | grep node_modules || exit 1
|