change pip flow to use PAT
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Build Homebrew package / build (push) Has been cancelled
Build GitHub Pages website / build (push) Has been cancelled
Run linters / lint (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Build Debian package / build (push) Has been cancelled
Build Pip package / build (push) Has been cancelled
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Has been cancelled
Run tests / docker_tests (push) Has been cancelled
Build GitHub Pages website / deploy (push) Has been cancelled

This commit is contained in:
Nick Sweeting 2024-12-18 18:55:29 -08:00
parent 46f4a90a2a
commit 1fb5ecf13d
No known key found for this signature in database

View file

@ -31,31 +31,33 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- uses: awalsh128/cache-apt-pkgs-action@latest
- 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: Install uv build dependencies
- name: UV install archivebox dev + run sub-dependencies
run: uv sync --frozen --all-extras --no-install-project --no-install-workspace
- name: Build package
- name: UV build archivebox and archivebox/pkgs/* packages
run: |
uv build --all
- name: Publish package distributions to PyPI
- name: Publish new package wheels and sdists to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PAT_SECRET }}
- name: UV install archivebox and archivebox/pkgs/* locally for tests
run: uv sync --frozen --all-extras
# - name: Install from build
# run: uv pip install ./dist/*.whl
# - name: Add some links to test
# run: |
# mkdir data && cd data
# archivebox init
# archivebox add 'https://example.com'
# archivebox version
# archivebox status
- name: UV run archivebox init + archivebox version
run: |
mkdir -p data && cd data
uv run archivebox init \
&& uv run archivebox version
# && uv run archivebox add 'https://example.com' \
# && uv run archivebox status \
# || (echo "UV Failed to run archivebox!" && exit 1)