mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Build Debian package / build (amd64) (push) Waiting to run
Build Debian package / build (arm64) (push) Waiting to run
Build Debian package / test (amd64, ubuntu-24.04) (push) Blocked by required conditions
Build Debian package / test (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
Build Debian package / release (push) Blocked by required conditions
Build Docker image / buildx (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Release State / release-state (push) Waiting to run
Parallel Tests / Discover test files (push) Waiting to run
Parallel Tests / ${{ matrix.test.name }} (push) Blocked by required conditions
Parallel Tests / Plugin tests (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.13) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
66 lines
1.9 KiB
YAML
Executable File
66 lines
1.9 KiB
YAML
Executable File
name: Build Pip package
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
tags:
|
|
- 'v*'
|
|
|
|
env:
|
|
PYTHON_VERSION: "3.13"
|
|
|
|
jobs:
|
|
build:
|
|
permissions:
|
|
id-token: write
|
|
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
with:
|
|
enable-cache: true
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
architecture: x64
|
|
|
|
- name: APT install archivebox dev + run dependencies
|
|
uses: awalsh128/cache-apt-pkgs-action@latest
|
|
with:
|
|
packages: ripgrep build-essential python3-dev python3-setuptools libssl-dev libldap2-dev libsasl2-dev zlib1g-dev libatomic1 gnupg2 curl wget python3-ldap python3-msgpack python3-mutagen python3-regex python3-pycryptodome procps
|
|
version: 1.0
|
|
|
|
- name: UV install archivebox dev + run sub-dependencies
|
|
run: uv sync --frozen --all-extras --no-install-project --no-install-workspace --no-sources
|
|
|
|
- name: UV build archivebox and archivebox/pkgs/* packages
|
|
run: |
|
|
uv build --all
|
|
|
|
- name: Publish new package wheels and sdists to PyPI
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
# ignore when publish to PyPI fails due to duplicate tag
|
|
continue-on-error: true
|
|
with:
|
|
password: ${{ secrets.PYPI_PAT_SECRET }}
|
|
|
|
- name: UV install archivebox and archivebox/pkgs/* locally for tests
|
|
run: uv sync --frozen --all-extras --no-sources
|
|
|
|
- name: UV run archivebox init + archivebox version
|
|
run: |
|
|
mkdir -p data && cd data
|
|
uv run --no-sync archivebox init \
|
|
&& uv run --no-sync archivebox version
|
|
# && uv run archivebox add 'https://example.com' \
|
|
# && uv run archivebox status \
|
|
# || (echo "UV Failed to run archivebox!" && exit 1)
|